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

io.mongock.runner.springboot.base.builder.migration.RunnerSpringbootBuilderBase Maven / Gradle / Ivy

There is a newer version: 5.5.0
Show newest version
package io.mongock.runner.springboot.base.builder.migration;

import io.mongock.api.config.MongockConfiguration;
import io.mongock.driver.api.driver.ChangeSetDependency;
import io.mongock.driver.api.entry.ChangeEntry;
import io.mongock.runner.core.builder.RunnerBuilder;
import io.mongock.runner.springboot.base.builder.SpringApplicationBean;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationEventPublisher;

//TODO javadoc
public interface RunnerSpringbootBuilderBase<
    SELF extends RunnerSpringbootBuilderBase,
    
    CONFIG extends MongockConfiguration>
    extends
    SpringApplicationBean,
    RunnerBuilder {

  //TODO javadoc
  SELF setSpringContext(ApplicationContext springContext);

  //TODO javadoc
  SELF setEventPublisher(ApplicationEventPublisher applicationEventPublisher);

  @Override
  default SELF addDependency(String name, Class type, Object instance) {
    getDependencyManager().addDriverDependency(new ChangeSetDependency(name, type, instance));
    return getInstance();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy