public class DistributedComponentConfigStore extends AbstractStore<ComponentConfigEvent,ComponentConfigStoreDelegate> implements ComponentConfigStore
| Modifier and Type | Field and Description |
|---|---|
protected StorageService |
storageService |
delegate| Constructor and Description |
|---|
DistributedComponentConfigStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
Set<String> |
getProperties(String componentName)
Returns set of component configuration property names.
|
String |
getProperty(String componentName,
String name)
Returns the string value of the given component configuration property.
|
void |
setProperty(String componentName,
String name,
String value)
Sets the value of the specified configuration property.
|
void |
setProperty(String componentName,
String name,
String value,
boolean override)
Sets the value of the specified configuration property.
|
void |
unsetProperty(String componentName,
String name)
Clears the value of the specified configuration property thus making
the property take on its default value.
|
hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasDelegate, setDelegate, unsetDelegateprotected StorageService storageService
public void activate()
public void deactivate()
public void setProperty(String componentName, String name, String value)
ComponentConfigStoresetProperty in interface ComponentConfigStorecomponentName - component namename - property namevalue - new property valuepublic void setProperty(String componentName, String name, String value, boolean override)
ComponentConfigStoresetProperty in interface ComponentConfigStorecomponentName - component namename - property namevalue - new property valueoverride - true to override even if the property has been set to other valuepublic void unsetProperty(String componentName, String name)
ComponentConfigStoreunsetProperty in interface ComponentConfigStorecomponentName - component namename - property namepublic Set<String> getProperties(String componentName)
ComponentConfigStoregetProperties in interface ComponentConfigStorecomponentName - component namepublic String getProperty(String componentName, String name)
ComponentConfigStoregetProperty in interface ComponentConfigStorecomponentName - component namename - property name; null if no property found or if value
is default