Package org.apache.synapse.config.xml
Class StartupFinder
- java.lang.Object
-
- org.apache.synapse.config.xml.StartupFinder
-
- All Implemented Interfaces:
XMLToObjectMapper
public class StartupFinder extends Object implements XMLToObjectMapper
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<QName,Class<? extends StartupFactory>>getFactoryMap()static StartupFindergetInstance()StartupgetObjectFromOMNode(org.apache.axiom.om.OMNode om, Properties properties)Allow the startup finder to act as an XMLToObjectMapper for Startup (i.e.Map<QName,Class<? extends StartupSerializer>>getSerializerMap()StartupgetStartup(org.apache.axiom.om.OMElement element, Properties properties)This method returns a Processor given an OMElement.booleanisStartup(QName name)Check whether an element with the given qualified name defines a startup.static voidreset()Force re initialization next timeorg.apache.axiom.om.OMElementserializeStartup(org.apache.axiom.om.OMElement parent, Startup startup)This method will serialize the config using the supplied QName (looking up the right class to do it)
-
-
-
Method Detail
-
getInstance
public static StartupFinder getInstance()
-
reset
public static void reset()
Force re initialization next time
-
isStartup
public boolean isStartup(QName name)
Check whether an element with the given qualified name defines a startup.- Parameters:
name- to be identified whether it is a startup or not- Returns:
- true if there is a startup registered with the factory map in the name, false if not
-
getStartup
public Startup getStartup(org.apache.axiom.om.OMElement element, Properties properties)
This method returns a Processor given an OMElement. This will be used recursively by the elements which contain processor elements themselves (e.g. rules)- Parameters:
element- configuration for creating the startupproperties- bag of properties with additional information- Returns:
- Processor
-
serializeStartup
public org.apache.axiom.om.OMElement serializeStartup(org.apache.axiom.om.OMElement parent, Startup startup)This method will serialize the config using the supplied QName (looking up the right class to do it)- Parameters:
parent- - Parent OMElement to which the created element will be added if not nullstartup- - Startup to be serialized- Returns:
- OMElement startup
-
getFactoryMap
public Map<QName,Class<? extends StartupFactory>> getFactoryMap()
-
getSerializerMap
public Map<QName,Class<? extends StartupSerializer>> getSerializerMap()
-
getObjectFromOMNode
public Startup getObjectFromOMNode(org.apache.axiom.om.OMNode om, Properties properties)
Allow the startup finder to act as an XMLToObjectMapper for Startup (i.e. Startup) loaded dynamically from a Registry- Specified by:
getObjectFromOMNodein interfaceXMLToObjectMapper- Parameters:
om- to build the startup objectproperties- bag of properties with additional information- Returns:
- startup created
-
-