|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.conf.ConfigurationCache
tigase.conf.ConfigXMLRepository
public class ConfigXMLRepository
Class ConfigXMLRepository provides access to configuration
settings.
Created: Sat Nov 13 18:53:21 2004
| Field Summary | |
|---|---|
static String |
COMPONENT_NODE
Field description |
static String |
ROOT_NODE
Field description |
static String |
XMPP_CONFIG_FILE_PROPERTY_KEY
Field description |
static String |
XMPP_CONFIG_FILE_PROPERTY_VAL
Field description |
| Fields inherited from class tigase.conf.ConfigurationCache |
|---|
CONFIG_DUMP_FILE_PROP_DEF, CONFIG_DUMP_FILE_PROP_KEY |
| Fields inherited from interface tigase.conf.ConfigRepositoryIfc |
|---|
RELOAD_DELAY, RESOURCE_URI |
| Fields inherited from interface tigase.db.comp.ComponentRepository |
|---|
COMP_REPO_BIND |
| Constructor Summary | |
|---|---|
ConfigXMLRepository()
Constructs ... |
|
| Method Summary | |
|---|---|
void |
addItem(String compName,
ConfigItem item)
Method description |
Collection<ConfigItem> |
allItems()
Method description |
String[] |
getCompNames()
Method description |
static ConfigXMLRepository |
getConfigRepository()
Method description |
static ConfigXMLRepository |
getConfigRepository(boolean debug,
String file_name)
Method description |
static ConfigXMLRepository |
getConfigRepository(String file_name)
Method description |
ConfigItem |
getItem(String compName,
String node,
String key)
Method description |
Set<ConfigItem> |
getItemsForComponent(String compName)
Method description |
String[] |
getKeys(String root,
String node)
Method description |
void |
init(Map<String,Object> params)
Method description |
String |
nodeForPackage(Class cls)
Method description |
void |
removeItem(String compName,
ConfigItem item)
Method description |
int |
size()
Method description |
void |
store()
Method description |
| Methods inherited from class tigase.conf.ConfigurationCache |
|---|
addItem, addItem, addRepoChangeListener, contains, get, getDefaults, getDefHostname, getInitProperties, getItem, getItemInstance, getProperties, iterator, putProperties, reload, remove, removeItem, removeRepoChangeListener, set, setAutoloadTimer, setDefHostname, setProperties, validateItem |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String COMPONENT_NODE
public static final String ROOT_NODE
public static final String XMPP_CONFIG_FILE_PROPERTY_KEY
public static final String XMPP_CONFIG_FILE_PROPERTY_VAL
| Constructor Detail |
|---|
public ConfigXMLRepository()
| Method Detail |
|---|
public static ConfigXMLRepository getConfigRepository()
throws tigase.xml.db.XMLDBException
tigase.xml.db.XMLDBException
public static ConfigXMLRepository getConfigRepository(String file_name)
throws tigase.xml.db.XMLDBException
file_name -
tigase.xml.db.XMLDBException
public static ConfigXMLRepository getConfigRepository(boolean debug,
String file_name)
throws tigase.xml.db.XMLDBException
debug - file_name -
tigase.xml.db.XMLDBException
public void addItem(String compName,
ConfigItem item)
addItem in class ConfigurationCachecompName - item -
public Collection<ConfigItem> allItems()
throws TigaseDBException
allItems in interface ComponentRepository<ConfigItem>allItems in class ConfigurationCacheTigaseDBExceptionpublic String[] getCompNames()
getCompNames in interface ConfigRepositoryIfcgetCompNames in class ConfigurationCache
public ConfigItem getItem(String compName,
String node,
String key)
getItem in class ConfigurationCachecompName - node - key -
public Set<ConfigItem> getItemsForComponent(String compName)
getItemsForComponent in interface ConfigRepositoryIfcgetItemsForComponent in class ConfigurationCachecompName -
public String[] getKeys(String root,
String node)
getKeys in interface ConfigRepositoryIfcgetKeys in class ConfigurationCacheroot - node -
public void init(Map<String,Object> params)
throws ConfigurationException
init in interface ConfigRepositoryIfcinit in class ConfigurationCacheparams -
ConfigurationExceptionpublic String nodeForPackage(Class cls)
cls -
public void removeItem(String compName,
ConfigItem item)
removeItem in class ConfigurationCachecompName - item - public int size()
size in interface ComponentRepository<ConfigItem>size in class ConfigurationCache
public void store()
throws TigaseDBException
store in interface ComponentRepository<ConfigItem>store in class ConfigurationCacheTigaseDBException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||