|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectConfigUtil
public class ConfigUtil
Utility class for reading properties from the NetUI configuration file.
init(InputStream)
method.
The configuration should be initialized with this method and a valid InputStream
before the first time the getConfig()
method is called. If the configuration
has not been initialized, getConfig()
will initialize a bare bones runtime
configuration. Depending on the web application, this default configuration
may lead to runtime errors.
Constructor Summary | |
---|---|
protected |
ConfigUtil()
|
Method Summary | |
---|---|
static NetuiConfigDocument.NetuiConfig |
getConfig()
Get the NetUI configuration object. |
static void |
init(InputStream is)
Initialize the NetUI configuration data. |
protected static void |
internalInit(InputStream is)
Internal method used to re-initialize the static class member that holds the ConfigDocument. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ConfigUtil()
Method Detail |
---|
public static final void init(InputStream is) throws ConfigInitializationException
InputStream
parameter should reference a
netui-config.xml file. If an error occurs loading the configuration
file, a ConfigInitializationException
will be thrown.
is
- the InputStream
from which to read the configuration file
ConfigInitializationException
- thrown when an error occurs loading the configuration file
or when the configuration is reinitialized.protected static final void internalInit(InputStream is) throws ConfigInitializationException
is
- The InputStream
that contains the config document to load
ConfigInitializationException
- thrown when an error occurs loading the
configuration file.public static NetuiConfigDocument.NetuiConfig getConfig()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |