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

archetype-resources.src.main.java.properties.Environment Maven / Gradle / Ivy

#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.properties;

import org.aeonbits.owner.ConfigCache;
import org.aeonbits.owner.ConfigFactory;

public class Environment {

    /**
     * Get properties
     *
     * @return EnvironmentProperties
     */
    public static EnvironmentProperties getProperties() {
        ConfigFactory.setProperty("env", System.getProperty("env", "test"));
        return ConfigCache.getOrCreate(EnvironmentProperties.class);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy