public class ConfigurationServiceImpl extends DefaultComponent implements ConfigurationService
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIGURATION_EP |
protected static org.apache.commons.logging.Log |
log |
protected ConfigurationPropertyRegistry |
registry |
lastModified| Constructor and Description |
|---|
ConfigurationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
getProperty(String key)
Returns the given property value if any, otherwise null.
|
String |
getProperty(String key,
String defaultValue)
Returns the given property value if any, otherwise returns the given default value.
|
boolean |
isBooleanPropertyFalse(String key)
Returns true if given property is false when compared to a boolean value.
|
boolean |
isBooleanPropertyTrue(String key)
Returns true if given property is true when compared to a boolean value.
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, deactivate, getAdapter, getLastModified, registerExtension, setLastModified, setModifiedNow, start, stop, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStarted, getApplicationStartedOrderprotected static final org.apache.commons.logging.Log log
public static final String CONFIGURATION_EP
protected ConfigurationPropertyRegistry registry
public ConfigurationServiceImpl()
public String getProperty(String key)
ConfigurationServicegetProperty in interface ConfigurationServicekey - the property keypublic String getProperty(String key, String defaultValue)
ConfigurationServicegetProperty in interface ConfigurationServicekey - the property keydefaultValue - the default value for this keypublic boolean isBooleanPropertyTrue(String key)
ConfigurationServiceisBooleanPropertyTrue in interface ConfigurationServicepublic boolean isBooleanPropertyFalse(String key)
ConfigurationServiceisBooleanPropertyFalse in interface ConfigurationServicepublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution in class DefaultComponentpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution in class DefaultComponentCopyright © 2017 Nuxeo. All rights reserved.