|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.root.RootObject
com.neeve.config.ConfigObject
com.neeve.config.ConfigRepositoryFactory
public final class ConfigRepositoryFactory
The configuration repository factory.
The configuration repository factory, a singleton object, provides methods to open configuration repositorys.
Field Summary | |
---|---|
static String |
DEFAULT_CONFIG_DESCRIPTOR
|
static String |
LOCAL_CONFIG_DESCRIPTOR
|
Method Summary | |
---|---|
void |
close()
Close all open repositories |
IConfigRepository |
createRepository(String descriptorStr)
Create a new configuration repository. |
IConfigRepository |
getDefaultRepository()
Get the default configuration repository |
static ConfigRepositoryFactory |
getInstance()
Get the singleton configuration repository factory instance. |
IConfigRepository |
getLocalRepository()
Get the local configuration repository |
IConfigRepository |
openRepository(String descriptorStr)
Open an existing configuration repository. |
boolean |
repositoryExists(String descriptorStr)
Check if a repository exists. |
Methods inherited from class com.neeve.root.RootObject |
---|
getChecked, getThreaded, getTracer, setChecked, setTracer |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String LOCAL_CONFIG_DESCRIPTOR
public static final String DEFAULT_CONFIG_DESCRIPTOR
Method Detail |
---|
public static final ConfigRepositoryFactory getInstance()
public final IConfigRepository createRepository(String descriptorStr) throws EConfigException
descriptorStr
- The string representation of an address descriptor
that describes the repository to create.
EConfigException
- Thrown in case an error occurs during the creation
of the repository.This method will fail if the repository is already present.
public final IConfigRepository openRepository(String descriptorStr) throws EConfigException
descriptorStr
- The string representation of an address descriptor
that describes the repository to open.
EConfigException
- Thrown in case an error occurs during the opening
of the repository.This method will fail if the repository is absent.
public final boolean repositoryExists(String descriptorStr) throws EConfigException
descriptorStr
- The string representation of an address descriptor
that describes the repository to check for.
EConfigException
- Thrown in case an error occurs during the existence
check of the repository.public final IConfigRepository getLocalRepository()
public final IConfigRepository getDefaultRepository()
public final void close()
This should be the last call to the factory.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |