|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IConfigManager
This interface must be implemented by a Configuration Manager object, which should be used in the framework. A configuration manager has to handle all configuration settings for the framework. They have to be kept consistent and valid.
| Method Summary | |
|---|---|
String[] |
getConfigurationNamespaces()
Gets all namespaces supported by the configuration manager. |
Object |
getConfigurationSource()
Gets the source object for the properties |
Properties |
getProperties(String namespace)
Gets a list of all properties for a given namespace. |
Properties |
getProperties(String namespace,
boolean selected)
Gets a list of selectable properties for a given namespace. |
Properties |
getProperties(String namespace,
String name)
Gets a list of all properties for a given namespace and names. |
Properties |
getProperties(String namespace,
String name,
boolean selected)
Gets a list of selectable properties for a given namespace and names. |
String |
getProperty(String namespace,
String name)
Gets a certain property with a given namespace and name. |
String |
getProperty(String namespace,
String name,
String metadata)
Gets a certain property with a given namespace, name and metadata. |
void |
loadConfiguration()
Loads the configuration from the source object. |
void |
removeProperties(String namespace)
Removes all properties for the given namespace. |
void |
removeProperty(String namespace,
String name)
Removes a certain property with a given namespace and name. |
void |
removeProperty(String namespace,
String name,
String metadata)
Removes a certain property with a given namespace, name and metadata. |
void |
saveConfiguration()
Saves the configuration in the source object. |
void |
setConfigurationSource(Object obj)
Sets the source object to store the properties in. |
void |
setProperties(String namespace,
Properties props)
Sets a list of properties for a given namespace. |
void |
setProperty(String namespace,
String name,
String value)
Sets a certain property with a given namespace, name and a value. |
void |
setProperty(String namespace,
String name,
String metadata,
String value)
Sets a certain property with a given namespace, name, metadata and a value. |
void |
setProperty(String namespace,
String name,
String metadata,
String value,
boolean overwrite)
Sets a certain property with a given namespace, name, metadata and a value. |
| Methods inherited from interface de.janrufmonitor.framework.manager.IRepositoryManager |
|---|
isActive, isSupported |
| Methods inherited from interface de.janrufmonitor.framework.manager.IManager |
|---|
getManagerID, getPriority, restart, setManagerID, shutdown, startup |
| Method Detail |
|---|
void setProperty(String namespace,
String name,
String value)
namespace - the namespace of the propertyname - the name of the propertyvalue - the value of the property
void setProperty(String namespace,
String name,
String metadata,
String value)
Example: namespace = de.development.myPlugin
name = counter
metadata = value
value = 99999
namespace = de.development.myPlugin
name = counter
metadata = type
value = integer
namespace - the namespace of the propertyname - the name of the propertymetadata - the metadata of the propertyvalue - the value of the property
void setProperty(String namespace,
String name,
String metadata,
String value,
boolean overwrite)
Example: namespace = de.development.myPlugin
name = counter
metadata = value
value = 99999
namespace = de.development.myPlugin
name = counter
metadata = type
value = integer
namespace - the namespace of the propertyname - the name of the propertymetadata - the metadata of the propertyvalue - the value of the propertyoverwrite - if the property already exists it can be overwritten or left by its old value.
String getProperty(String namespace,
String name)
namespace - the namespace of the propertyname - the name of the property
String getProperty(String namespace,
String name,
String metadata)
Example: namespace = de.development.myPlugin
name = counter
metadata = value
value = 99999
namespace = de.development.myPlugin
name = counter
metadata = type
value = integer
namespace - the namespace of the propertyname - the name of the propertymetadata - the metadata of the property
void removeProperty(String namespace,
String name)
namespace - the namespace of the propertyname - the name of the property
void removeProperty(String namespace,
String name,
String metadata)
namespace - the namespace of the propertyname - the name of the propertymetadata - the metadata of the property
void setProperties(String namespace,
Properties props)
namespace - the namespace to set the list forprops - list of propertiesProperties getProperties(String namespace)
namespace - the namespace to retrieve the list for
Properties getProperties(String namespace,
boolean selected)
namespace - the namespace to retrieve the list forselected - a selected set of properties could be returned, e.g. for security reasons
Properties getProperties(String namespace,
String name)
namespace - the namespace to retrieve the list forname - the name to retrieve the list for
Properties getProperties(String namespace,
String name,
boolean selected)
namespace - the namespace to retrieve the list forname - the name to retrieve the list forselected - a selected set of properties could be returned, e.g. for security reasons
void removeProperties(String namespace)
namespace - the namespace to be removedvoid setConfigurationSource(Object obj)
obj - the source object to store the propertiesObject getConfigurationSource()
void loadConfiguration()
void saveConfiguration()
String[] getConfigurationNamespaces()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||