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 Details

    • ExtendedPropertyConfigurator

      public ExtendedPropertyConfigurator(InitParams params, ConfigurationManager confManager)
      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:
      start in interface Startable
      Overrides:
      start in class PropertyConfigurator
    • stop

      public void stop()
      Stop this component. Called near the end of the lifecycle. It can be called again after a further start. Implement Disposable if you need a single call at the definite end of the lifecycle.
      Specified by:
      stop in interface Startable
      Overrides:
      stop in class PropertyConfigurator