Package org.exoplatform.container
Class ExtendedPropertyConfigurator
java.lang.Object
org.exoplatform.container.PropertyConfigurator
org.exoplatform.container.ExtendedPropertyConfigurator
- All Implemented Interfaces:
Startable
Allow set system properties.
Example of configuration:
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
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
-
Constructor Summary
ConstructorsConstructorDescriptionExtendedPropertyConfigurator(InitParams params, ConfigurationManager confManager) Constructor used by ExoContainer. -
Method Summary
-
Constructor Details
-
ExtendedPropertyConfigurator
Constructor used by ExoContainer.- Parameters:
params-confManager-
-
-
Method Details
-
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
-