|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertyManager
Method Summary | |
---|---|
void |
addManagementPlugin(PropertyManagementPlugin plugin)
This adds a management plugin to this property manager. |
java.util.Properties |
getProperties()
Get all the properties stored in this property manager |
java.lang.String |
getProperty(java.lang.String name)
Get the value of the property with the name name |
java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
Get the value of the property with the name name . |
void |
load(java.lang.String pluginClassname,
java.lang.String uri)
Loads properties from a given URI using the given property manager plugin. |
java.util.Enumeration |
propertyNames()
Returns an enumeration of the property names |
java.lang.String |
removeProperty(java.lang.String name)
Removes the property from the property manager. |
void |
save(java.lang.String pluginClassname,
java.lang.String uri)
Saves the properties stored in this property manager using the given property manager plugin. |
java.lang.String |
setProperty(java.lang.String name,
java.lang.String value)
Set the value of the property name to value |
java.lang.String |
setProperty(java.lang.String name,
java.lang.String value,
boolean setSystemProperty)
Set the value of the property name to value . |
boolean |
verbose()
Returns true if the property manager is in verbose mode |
Method Detail |
---|
java.lang.String getProperty(java.lang.String name)
name
name
- The name of the property to retrieve the value of.
java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue)
name
.
If the property cannot be found return the value defaultValue
.
name
- The name of the property to retrieve the value of.defaultValue
- The default value to return if the property cannot be found.
java.lang.String setProperty(java.lang.String name, java.lang.String value, boolean setSystemProperty)
name
to value
.
name
- The name of the property to set.value
- The value of the property being set.setSystemProperty
- True - set the system property if it has a value
java.lang.String setProperty(java.lang.String name, java.lang.String value)
name
to value
name
- The name of the property to set.value
- The value of the property to set.
java.lang.String removeProperty(java.lang.String name)
name
- The name of the property to remove.
java.util.Properties getProperties()
java.util.Enumeration propertyNames()
void load(java.lang.String pluginClassname, java.lang.String uri) throws java.io.IOException, java.lang.ClassNotFoundException, LoadPropertiesException
pluginClassname
- The classname of the plugin to use. This plugin is loaded
using the current thread context classloader.uri
- The URI to load.
java.io.IOException
java.lang.ClassNotFoundException
LoadPropertiesException
void save(java.lang.String pluginClassname, java.lang.String uri) throws java.io.IOException, java.lang.ClassNotFoundException, SavePropertiesException
pluginClassname
- The classname of the plugin to use. This plugin is loaded
using the current thread context classloader. If null is provided the plugin used
to load the properties is also used to save them.uri
- The URI to save to. If null is provided the uri used to load the properties
is also used to save them.
java.io.IOException
java.lang.ClassNotFoundException
SavePropertiesException
void addManagementPlugin(PropertyManagementPlugin plugin) throws java.io.IOException, ManagementPluginException
plugin
- The PropertyManagementPlugin to plug-in.
java.io.IOException
ManagementPluginException
boolean verbose()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |