|
eXo Kernel :: Container 2.5.0-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.container.PropertyConfigurator
public class PropertyConfigurator
The property configurator configures a set of system properties via the PropertyManager
static methods. It is possible to configure properties from the init params or from an external
file.
The constructor will inspect the InitParams params argument
to find a param named properties with an expected type of PropertiesParam. The
properties contained in that argument will be sourced into the property manager. When such properties
are loaded from an XML configuration file, the values are evaluated and property substitution occurs.
When the property PropertyManager.PROPERTIES_URL is not null and points to a valid property
file it will loaded and sourced. Property values will be evaluated and property substitution will
occur. When the file name ends with the .properties properties are loaded using the
Properties.load(java.io.InputStream) method. When the file name ends with the .xml
properties are loaded using the Properties.loadFromXML(java.io.InputStream) method. Suffix
checks are done ignoring the case.
When properties are loaded from an URL, the order of the properties declarations in the file matters.
| Constructor Summary | |
|---|---|
PropertyConfigurator(ConfigurationManager confManager)
|
|
PropertyConfigurator(InitParams params,
ConfigurationManager confManager)
|
|
| Method Summary | |
|---|---|
void |
start()
Start this component. |
void |
stop()
Stop this component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyConfigurator(ConfigurationManager confManager)
public PropertyConfigurator(InitParams params,
ConfigurationManager confManager)
| Method Detail |
|---|
public void start()
Startable
start in interface Startablepublic void stop()
StartableDisposable if you need a single call at the definite end of the lifecycle.
stop in interface Startable
|
eXo Kernel :: Container 2.5.0-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||