Package com.eva.properties

Examples of com.eva.properties.MapProperties


            String inBundle) {
        /*
         * Check for configuration for the given package in the default
         * properties:
         */
        MapProperties properties = (MapProperties) DEFAULT_PROPERTIES
                .get(inPackage.replace('.', '-'));
        if(properties == null) {
            /*
             * Try loading the properties for the given package form the
             * classpath using the naming convention "<package>/log.eva":
             */
            try {
                properties = new MapProperties(new DataSource(inClassLoader,
                        "classpath://" + inPackage.replace('.', '/') + "/"
                                + LOG_CONFIG_FILENAME));
            }
            catch(FileNotFoundException e) {
                DEFAULT_LOGGER.log(Level.CONFIG,
View Full Code Here


     * loads the default properties from the classpath.
     *
     * @return the default properties.
     */
    private static MapProperties loadDefaults() {
        return new MapProperties(EvaLog.class
                .getResourceAsStream(LOG_CONFIG_FILENAME));
    }
View Full Code Here

TOP

Related Classes of com.eva.properties.MapProperties

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.