Package org.apache.synapse.config.xml
Class PropertyHelper
- java.lang.Object
-
- org.apache.synapse.config.xml.PropertyHelper
-
public class PropertyHelper extends Object
This class will be used as a Helper class to get the properties loaded while building the Synapse Configuration from the XML
-
-
Constructor Summary
Constructors Constructor Description PropertyHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isStaticProperty(org.apache.axiom.om.OMElement property)
This method will check the given OMElement represent either a static property or notstatic void
setInstanceProperty(String name, Object val, Object obj)
Find and invoke the setter method with the name of form setXXX passing in the value given on the POJO objectstatic void
setStaticProperty(org.apache.axiom.om.OMElement property, Object o)
This method will set the static property discribed in the OMElement to the specified object.
-
-
-
Method Detail
-
setInstanceProperty
public static void setInstanceProperty(String name, Object val, Object obj)
Find and invoke the setter method with the name of form setXXX passing in the value given on the POJO object- Parameters:
name
- name of the setter fieldval
- value to be setobj
- POJO instance
-
setStaticProperty
public static void setStaticProperty(org.apache.axiom.om.OMElement property, Object o)
This method will set the static property discribed in the OMElement to the specified object. This Object should have the setter method for the specified property name- Parameters:
property
- - OMElement specifying the property to be built in to the objecto
- - Object to which the specified property will be set.
-
isStaticProperty
public static boolean isStaticProperty(org.apache.axiom.om.OMElement property)
This method will check the given OMElement represent either a static property or not- Parameters:
property
- - OMElement to be checked for the static property- Returns:
- boolean true if the elemet represents a static property element false otherwise
-
-