org.apache.synapse.config
Class SynapsePropertiesLoader

java.lang.Object
  extended by org.apache.synapse.config.SynapsePropertiesLoader

public class SynapsePropertiesLoader
extends Object

Provides a Factory method load synapse properties. Cache the properties to make sure properties loading only is occurred onetime


Method Summary
static String getPropertyValue(String key, String defaultValue)
          Load a value of the property from the synapse properties
static Properties loadSynapseProperties()
          Loads the properties This happen only cached properties are null.
static Properties reloadSynapseProperties()
          Reloading properties from file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadSynapseProperties

public static Properties loadSynapseProperties()
Loads the properties This happen only cached properties are null.

Returns:
Synapse Properties

reloadSynapseProperties

public static Properties reloadSynapseProperties()
Reloading properties from file

Returns:
Reloaded properties

getPropertyValue

public static String getPropertyValue(String key,
                                      String defaultValue)
Load a value of the property from the synapse properties

Parameters:
key - Key of the property
defaultValue - Default value
Returns:
Value of the property


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.