public final class ConfigRepositoryFactory extends ConfigObject
The configuration repository factory, a singleton object, provides methods to open configuration repositorys.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONFIG_DESCRIPTOR |
static String |
LOCAL_CONFIG_DESCRIPTOR |
Modifier and Type | Method and Description |
---|---|
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.
|
getTracer
public static final String LOCAL_CONFIG_DESCRIPTOR
public static final String DEFAULT_CONFIG_DESCRIPTOR
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.
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.