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

org.drools.examples.conway.ConwayApplicationProperties Maven / Gradle / Ivy

The newest version!
package org.drools.examples.conway;

import java.util.ResourceBundle;

/**
 * A utility class for retrieving application properties
 * 
 * @author Jeff Brown
 */
public class ConwayApplicationProperties {
    private static final ConwayApplicationProperties ourInstance = new ConwayApplicationProperties();

    public static ConwayApplicationProperties getInstance() {
        return ConwayApplicationProperties.ourInstance;
    }

    private final ResourceBundle resources;

    private ConwayApplicationProperties() {
        this.resources = ResourceBundle.getBundle( "org.drools.examples.conway.conway" );
    }

    public static String getProperty(final String propertyName) {
        return ConwayApplicationProperties.ourInstance.resources.getString( propertyName );
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy