|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.mdm.index.configurator.ConfigurationService
ConfigurationMBean implementation
| Nested Class Summary | |
protected static class |
ConfigurationService.ConfigurationServiceObservable
Inner class to notify of configuration changes after the initial load. |
| Field Summary | |
static java.lang.String |
ATR_MODULE_NAME
XML node attribute for the module name |
static java.lang.String |
ATR_PARSER_CLASS
XML node attribute for parser class |
(package private) static java.lang.String |
FILTER_FILE_NAME
|
(package private) static java.lang.String |
HOME_SYS_PROP
JVM property name for BBE home directory |
(package private) static java.lang.String |
MASTER_FILE_NAME
|
(package private) static java.lang.String |
MATCH_DIR
|
(package private) static java.lang.String |
MEFA_FILE_NAME
|
(package private) static java.lang.String |
QUERY_FILE_NAME
|
(package private) static java.lang.String |
SECURITY_FILE_NAME
|
(package private) static java.lang.String |
STAND_DIR
|
(package private) static java.lang.String |
UPDATE_FILE_NAME
|
(package private) static java.lang.String |
VALIDATION_FILE_NAME
|
| Fields inherited from interface com.sun.mdm.index.configurator.ConfigurationMBean |
MBEAN_NAME |
| Constructor Summary | |
ConfigurationService()
Creates new ConfigurationService instance |
|
| Method Summary | |
static void |
addConfigChangeObserver(java.util.Observer anObserver)
Add an Observer to be notified it the configuration changes from what was originally loaded. |
static void |
deleteConfigChangeObserver(java.util.Observer anObserver)
Remove the Observer from being notified of configuration changes from what was originally loaded. |
java.io.InputStream |
getConfigFileStream(java.lang.String fileName)
Returns an inputstream to the configuration file. |
ConfigurationInfo |
getConfiguration(java.lang.String name)
Returns the configuration instance given the name. |
static ConfigurationService |
getInstance()
Returns a reference to the singleton instance. |
void |
load(java.io.InputStream fileStream)
Load the configuration file. |
static void |
resetInstance()
Ensures the singleton instance will be reloaded with the latest configuration with the next call to getInstance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String ATR_MODULE_NAME
public static final java.lang.String ATR_PARSER_CLASS
static final java.lang.String FILTER_FILE_NAME
static final java.lang.String HOME_SYS_PROP
static final java.lang.String MASTER_FILE_NAME
static final java.lang.String MATCH_DIR
static final java.lang.String MEFA_FILE_NAME
static final java.lang.String QUERY_FILE_NAME
static final java.lang.String SECURITY_FILE_NAME
static final java.lang.String STAND_DIR
static final java.lang.String UPDATE_FILE_NAME
static final java.lang.String VALIDATION_FILE_NAME
| Constructor Detail |
public ConfigurationService()
| Method Detail |
public static void addConfigChangeObserver(java.util.Observer anObserver)
anObserver - the observer to notify.public static void deleteConfigChangeObserver(java.util.Observer anObserver)
anObserver - the observer to remove.
public java.io.InputStream getConfigFileStream(java.lang.String fileName)
throws java.io.IOException
java.io.IOException - error constructing the URL.public ConfigurationInfo getConfiguration(java.lang.String name)
getConfiguration in interface ConfigurationMBeanname - Name of the configuration section.
public static ConfigurationService getInstance()
throws java.lang.InstantiationException
java.lang.InstantiationException - throws error if unable to create instance
public void load(java.io.InputStream fileStream)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException,
org.w3c.dom.DOMException,
java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
ConfigurationException
load in interface ConfigurationMBeanfileStream - input stream to the file.
java.io.IOException - if there is an error accessing the file.
org.xml.sax.SAXException - if there is an error parsing the file.
javax.xml.parsers.ParserConfigurationException - if there is an invalid parser
configuration.
org.w3c.dom.DOMException - if there is an error accessing the DOM tree.
java.lang.ClassNotFoundException - if the parser class not found.
java.lang.InstantiationException - if the parser can not be instantiated.
java.lang.IllegalAccessException - if it is unable to access parser default
constructor.
ConfigurationException - if it encounters unexpected values.public static void resetInstance()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Sun Microsystems, Inc.