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

io.mongock.runner.springboot.base.config.MongockSpringConfiguration Maven / Gradle / Ivy

The newest version!
package io.mongock.runner.springboot.base.config;

import io.mongock.api.config.MongockConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties("mongock")
public class MongockSpringConfiguration extends MongockConfiguration implements MongockSpringConfigurationBase {


  private boolean testEnabled = false;
  /**
   * Type of Spring bean Mongock should be: ApplicationRunner(default) or InitializingBean
   */
  private SpringRunnerType runnerType = SpringRunnerType.ApplicationRunner;

  public SpringRunnerType getRunnerType() {
    return runnerType;
  }

  public void setRunnerType(SpringRunnerType runnerType) {
    this.runnerType = runnerType;
  }

  public boolean isTestEnabled() {
    return testEnabled;
  }

  public void setTestEnabled(boolean testEnabled) {
    this.testEnabled = testEnabled;
  }

  public  void updateFrom(T from) {
    super.updateFrom(from);
    testEnabled = from.isTestEnabled();
    runnerType = from.getRunnerType();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy