ru.foodtechlab.lib.auth.service.domain.migration.config.MigrationConfig Maven / Gradle / Ivy
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