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