Package org.exoplatform.container
Class ExtendedPropertyConfigurator
- java.lang.Object
-
- org.exoplatform.container.PropertyConfigurator
-
- org.exoplatform.container.ExtendedPropertyConfigurator
-
- All Implemented Interfaces:
Startable
public class ExtendedPropertyConfigurator extends PropertyConfigurator implements Startable
Allow set system properties.
Example of configuration:<component> <key>ExtendedPropertyConfigurator</key> <type>org.exoplatform.container.ExtendedPropertyConfigurator</type> <init-params> <properties-param> <name>MyPropertySet1</name> <property name="myproperty" value="myvalue" /> </properties-param> <properties-param profile="myProfile"> <name>MyPropertySet1</name> <property name="myproperty" value="myvalue2" /> </properties-param> <properties-param> <name>MyPropertySet1</name> <property name="myproperty2" value="myothervalue" /> </properties-param> <values-param> <name>properties.urls</name> <value>cloud.properties</value> <value>cluster.properties</value> </values-param> </init-params> </component>
Note that properties-param entries and properties.url optional and can be omitted. Note that if a path in properties.url doesn't exist it will be skipped with an info message- Author:
- pnedonosko, aheritier, nfilotto
-
-
Constructor Summary
Constructors Constructor Description ExtendedPropertyConfigurator(InitParams params, ConfigurationManager confManager)Constructor used by ExoContainer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstart()Start this component.voidstop()Stop this component.
-
-
-
Constructor Detail
-
ExtendedPropertyConfigurator
public ExtendedPropertyConfigurator(InitParams params, ConfigurationManager confManager)
Constructor used by ExoContainer.- Parameters:
params-confManager-
-
-
Method Detail
-
start
public void start()
Start this component. Called initially at the begin of the lifecycle. It can be called again after a stop.- Specified by:
startin interfaceStartable- Overrides:
startin classPropertyConfigurator
-
stop
public void stop()
Stop this component. Called near the end of the lifecycle. It can be called again after a further start. ImplementDisposableif you need a single call at the definite end of the lifecycle.- Specified by:
stopin interfaceStartable- Overrides:
stopin classPropertyConfigurator
-
-