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

play.db.ebean.orm.evolution.EvolutionMigrationConfig Maven / Gradle / Ivy

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

import com.typesafe.config.Config;
import com.typesafe.config.ConfigException;

/**
 * EvolutionMigrationConfig.
 *
 * @author Pierre Adam
 * @since 22.03.10
 */
public class EvolutionMigrationConfig {

    /**
     * The Use evolution migration.
     */
    private boolean enabled;

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

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

    /**
     * Is enabled boolean.
     *
     * @return the boolean
     */
    public boolean isEnabled() {
        return this.enabled;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy