org.loom.config
Class ConfigProperties
java.lang.Object
org.loom.config.ConfigProperties
public class ConfigProperties
- extends java.lang.Object
Contains the contents of the loom-config.properties file in the classpath
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigProperties
public ConfigProperties()
ConfigProperties
public ConfigProperties(java.util.Properties properties)
getInstance
public static ConfigProperties getInstance()
setInstance
public static void setInstance(ConfigProperties instance)
setProperty
public void setProperty(java.lang.String name,
java.lang.String value)
getPropertyAsInteger
public java.lang.Integer getPropertyAsInteger(java.lang.String propertyKey,
java.lang.Integer defaultValue)
- Returns:
- a configured property, as Integer
getPropertyAsBoolean
public boolean getPropertyAsBoolean(java.lang.String propertyKey,
boolean defaultValue)
- Returns:
- a configured property, as boolean
getProperty
public java.lang.String getProperty(java.lang.String propertyKey,
java.lang.String defaultValue)
- Returns:
- a configured property, as String
getDefaultCss
public java.lang.String getDefaultCss(java.lang.Class<? extends AbstractHtmlTag> clazz,
java.lang.String defaultCSS)
- Returns:
- the default CSS value for the specified tag, defaultCSS if there
is none