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

play.db.ebean.orm.PlayEbeanExtraConfig Maven / Gradle / Ivy

The newest version!
package play.db.ebean.orm;

import com.typesafe.config.Config;
import com.typesafe.config.ConfigException;
import play.db.ebean.orm.evolution.EvolutionMigrationConfig;

/**
 * EbeanExtraConfig.
 *
 * @author Pierre Adam
 * @since 22.03.09
 */
public class PlayEbeanExtraConfig {

    /**
     * The Use evolution migration.
     */
    private final EvolutionMigrationConfig evolutionMigrationConfig;

    /**
     * Instantiates a new Play ebean extra config.
     */
    public PlayEbeanExtraConfig() {
        this.evolutionMigrationConfig = new EvolutionMigrationConfig();
    }

    /**
     * Configure.
     *
     * @param configuration the configuration
     * @throws ConfigException the config exception
     */
    public void configure(final Config configuration) throws ConfigException {
        if (configuration.hasPath("evolution")) {
            this.evolutionMigrationConfig.configure(configuration.getConfig("evolution"));
        }
    }

    /**
     * Gets evolution migration config.
     *
     * @return the evolution migration config
     */
    public EvolutionMigrationConfig getEvolutionMigrationConfig() {
        return evolutionMigrationConfig;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy