| java.lang.Object org.jivesoftware.util.JiveProperties
JiveProperties | public class JiveProperties implements Map<String, String>(Code) | | Retrieves and stores Jive properties. Properties are stored in the database.
author: Matt Tucker |
clear | public void clear()(Code) | | |
containsValue | public boolean containsValue(Object value)(Code) | | |
getBooleanProperty | public boolean getBooleanProperty(String name)(Code) | | |
getBooleanProperty | public boolean getBooleanProperty(String name, boolean defaultValue)(Code) | | |
getChildrenNames | public Collection<String> getChildrenNames(String parentKey)(Code) | | Return all children property names of a parent property as a Collection
of String objects. For example, given the properties X.Y.A,
X.Y.B, and X.Y.C, then the child properties of
X.Y are X.Y.A, X.Y.B, and X.Y.C. The method
is not recursive; ie, it does not return children of children.
Parameters: parentKey - the name of the parent property. all child property names for the given parent. |
getInstance | public static JiveProperties getInstance()(Code) | | Returns a singleton instance of JiveProperties.
an instance of JiveProperties. |
getPropertyNames | public Collection<String> getPropertyNames()(Code) | | Returns all property names as a Collection of String values.
all property names. |
init | public void init()(Code) | | For internal use only. This method allows for the reloading of all properties from the
values in the datatabase. This is required since it's quite possible during the setup
process that a database connection will not be available till after this class is
initialized. Thus, if there are existing properties in the database we will want to reload
this class after the setup process has been completed.
|
isEmpty | public boolean isEmpty()(Code) | | |
|
|