public interface Settings4jRepository
Settings4jInstance
.Modifier and Type | Method and Description |
---|---|
int |
getConnectorCount()
Return the Connector Count.
|
Settings4jInstance |
getSettings()
Retrieve the appropriate
Settings4j instance. |
Settings4jInstance |
getSettings(Settings4jFactory factory)
Retrieve the appropriate
Settings4j instance or create it with the give factory if doesn'r already exist. |
void |
resetConfiguration()
Remove the Settings, Connectors and other Objects from the Repository.
|
Settings4jInstance getSettings()
Settings4j
instance.Settings4jInstance
Settings4jInstance getSettings(Settings4jFactory factory)
Settings4j
instance or create it with the give factory if doesn'r already exist.factory
- The factory to create a Settings4jInstance
.Settings4jInstance
int getConnectorCount()
SettingsManager.getSettings()
void resetConfiguration()
Remove the Settings, Connectors and other Objects from the Repository.
Make it ready to fill it with a new Configuration.
Example (maybe in an init()-Method of your Application):
// clear Settings from "settings4j.xml" SettingsRepository settingsRepository = SettingsManager.getSettingsRepository(); settingsRepository.resetConfiguration(); // read XML Custome to configure the repository URL url = ClasspathContentResolver.getResource("customizedSettings4j.xml"); DOMConfigurator domConfigurator = new DOMConfigurator(settingsRepository); domConfigurator.doConfigure(url);
Copyright © 2008–2014. All rights reserved.