public interface ComponentConfigService
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getComponentNames()
Returns names of all components that have registered their
configuration properties.
|
java.util.Set<ConfigProperty> |
getProperties(java.lang.String componentName)
Returns configuration properties of the named components.
|
void |
preSetProperty(java.lang.String componentName,
java.lang.String name,
java.lang.String value)
Presets the value of the specified configuration property, regardless
of the component's state.
|
void |
registerProperties(java.lang.Class<?> componentClass)
Registers configuration properties for the specified component.
|
void |
setProperty(java.lang.String componentName,
java.lang.String name,
java.lang.String value)
Sets the value of the specified configuration property.
|
void |
unregisterProperties(java.lang.Class<?> componentClass,
boolean clear)
Unregisters configuration properties for the specified component.
|
void |
unsetProperty(java.lang.String componentName,
java.lang.String name)
Clears the value of the specified configuration property thus making
the property take on its default value.
|
java.util.Set<java.lang.String> getComponentNames()
void registerProperties(java.lang.Class<?> componentClass)
componentClass
- class of configurable componentvoid unregisterProperties(java.lang.Class<?> componentClass, boolean clear)
componentClass
- class of configurable componentclear
- true indicates any settings should be clearedjava.util.Set<ConfigProperty> getProperties(java.lang.String componentName)
componentName
- component namevoid setProperty(java.lang.String componentName, java.lang.String name, java.lang.String value)
componentName
- component namename
- property namevalue
- new property valuevoid preSetProperty(java.lang.String componentName, java.lang.String name, java.lang.String value)
componentName
- component namename
- property namevalue
- new property valuevoid unsetProperty(java.lang.String componentName, java.lang.String name)
componentName
- component namename
- property name