|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.config.xml.ConfigurationFactoryAndSerializerFinder
public class ConfigurationFactoryAndSerializerFinder
This class is based on J2SE Service Provider model http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#Service%20Provider
It deals with both the problem of turning an XML into a Synapse config and vice-versa
Method Summary | |
---|---|
SynapseConfiguration |
getConfiguration(OMElement element,
Properties properties)
This method returns a Processor given an OMElement. |
Map |
getFactoryMap()
This method exposes all the ConfigurationFactories and its Extensions |
static ConfigurationFactoryAndSerializerFinder |
getInstance()
|
Object |
getObjectFromOMNode(OMNode om,
Properties properties)
Allow the mediator factory finder to act as an XMLToObjectMapper for Mediators (i.e. |
static Map |
getSerializerMap()
This method exposes all the ConfigurationSerializer and its Extensions |
static void |
reset()
Force re initialization next time |
static OMElement |
serializeConfiguration(SynapseConfiguration synCfg)
|
static OMElement |
serializeConfiguration(SynapseConfiguration synCfg,
QName qName)
This method will serialize the config using the supplied QName (looking up the right class to do it) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ConfigurationFactoryAndSerializerFinder getInstance()
public static void reset()
public SynapseConfiguration getConfiguration(OMElement element, Properties properties)
element
-
public static OMElement serializeConfiguration(SynapseConfiguration synCfg)
synCfg
-
public static OMElement serializeConfiguration(SynapseConfiguration synCfg, QName qName)
synCfg
- qName
-
javax.xml.stream.XMLStreamException
public Map getFactoryMap()
public static Map getSerializerMap()
public Object getObjectFromOMNode(OMNode om, Properties properties)
getObjectFromOMNode
in interface XMLToObjectMapper
om
- configuration from which the object is builtproperties
- bag of properties to pass in any information to the factory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |