public class AppConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JUDDI_CONFIGURATION_FILE_SYSTEM_PROPERTY
This system property's value should be a path to a configuration file
|
static String |
JUDDI_PROPERTIES
The default configuration file name for juddi
|
Modifier and Type | Method and Description |
---|---|
static URL |
getConfigFileURL()
Enables an administrator to identify the physical location of the configuration file from which it was loaded.
Always call via the singleton function AppConfig.getInstance().getConfigFileURL() |
static org.apache.commons.configuration.Configuration |
getConfiguration()
The object from which property values can be obtained.
|
static AppConfig |
getInstance()
Obtains the reference to the Singleton instance.
|
static void |
reloadConfig()
Hook to receive configuration reload events from an external application.
|
static void |
saveConfiguration() |
static void |
setJuddiProperty(String key,
Object val) |
static void |
triggerReload() |
public static final String JUDDI_CONFIGURATION_FILE_SYSTEM_PROPERTY
public static final String JUDDI_PROPERTIES
public static URL getConfigFileURL()
public static void setJuddiProperty(String key, Object val) throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public static void saveConfiguration() throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public static AppConfig getInstance() throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public static void reloadConfig() throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public static void triggerReload() throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public static org.apache.commons.configuration.Configuration getConfiguration() throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.