org.gcube.contentmanagement.util.configuration
Class Configuration
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
org.gcube.contentmanagement.util.configuration.Configuration
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>
public class Configuration
- extends java.util.Properties
- See Also:
- Serialized Form
Methods inherited from class java.util.Properties |
getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
DEFAULT_CONTEXT
public static final java.lang.String DEFAULT_CONTEXT
- See Also:
- Constant Field Values
Configuration
public Configuration()
setContextProvider
public static void setContextProvider(Configuration.ContextProvider contextProvider)
getConfiguration
public static Configuration getConfiguration(java.lang.String contextID)
getConfiguration
public static Configuration getConfiguration()
getContextID
public static java.lang.String getContextID()
getProperty
public java.lang.String getProperty(java.lang.String propName)
- utility methods
- Overrides:
getProperty
in class java.util.Properties
- Parameters:
propName
-
- Returns:
- the value of the property
getIntProperty
public int getIntProperty(java.lang.String propName)
getProperty
public java.lang.String getProperty(ConfigurationConstantsNames propName)
getIntProperty
public int getIntProperty(ConfigurationConstantsNames propName)
setProperty
public void setProperty(ConfigurationConstantsNames propName,
java.lang.String value)
getFileProperty
public java.io.File getFileProperty(java.lang.String name)
getFileProperty
public java.io.File getFileProperty(ConfigurationConstantsNames propName)
loadFromServiceContext
public void loadFromServiceContext(GCUBEServiceContext context,
ConfigurationConstantsNames[] constantNamesValues)