All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.foodtechlab.lib.auth.service.domain.migration.config.MigrationConfig Maven / Gradle / Ivy

There is a newer version: 4.1.0
Show newest version
package ru.foodtechlab.lib.auth.service.domain.migration.config;

import lombok.Getter;
import lombok.experimental.Accessors;
import ru.foodtechlab.lib.auth.service.domain.migration.port.MigrationRepository;
import ru.foodtechlab.lib.auth.service.domain.migration.usecases.InitMigrationUseCase;
import ru.foodtechlab.lib.auth.service.domain.migration.usecases.RunMigrationUseCase;

@Accessors(fluent = true)
@Getter
public class MigrationConfig {
    private final InitMigrationUseCase initMigrationUseCase;
    private final RunMigrationUseCase runMigrationUseCase;

    public MigrationConfig(MigrationRepository migrationRepository) {
        this.initMigrationUseCase = new InitMigrationUseCase(migrationRepository);
        this.runMigrationUseCase = new RunMigrationUseCase(migrationRepository);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy