Package org.apache.synapse.config.xml
Class SynapseXMLConfigurationFactory
- java.lang.Object
-
- org.apache.synapse.config.xml.SynapseXMLConfigurationFactory
-
- All Implemented Interfaces:
ConfigurationFactory
public class SynapseXMLConfigurationFactory extends Object implements ConfigurationFactory
-
-
Constructor Summary
Constructors Constructor Description SynapseXMLConfigurationFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static API
defineAPI(SynapseConfiguration config, org.apache.axiom.om.OMElement elem)
static API
defineAPI(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
static API
defineAPI(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties, boolean reOrder)
Add api with the option of re-ordering the api collection based on the contextstatic Endpoint
defineEndpoint(SynapseConfiguration config, org.apache.axiom.om.OMElement ele, Properties properties)
static Template
defineEndpointTemplate(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
static Entry
defineEntry(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
static Entry
defineEntry(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties, Library library)
static SynapseEventSource
defineEventSource(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
static org.apache.synapse.commons.executors.PriorityExecutor
defineExecutor(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
static SynapseImport
defineImport(SynapseConfiguration config, org.apache.axiom.om.OMElement elt, Properties properties)
static InboundEndpoint
defineInboundEndpoint(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
static Mediator
defineMediatorTemplate(SynapseConfiguration config, org.apache.axiom.om.OMElement ele, Properties properties)
static MessageProcessor
defineMessageProcessor(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
static MessageStore
defineMessageStore(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
static ProxyService
defineProxy(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
static Registry
defineRegistry(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
static Mediator
defineSequence(SynapseConfiguration config, org.apache.axiom.om.OMElement ele, Properties properties)
static Startup
defineStartup(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
static org.apache.synapse.task.TaskManager
defineTaskManager(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
static void
defineTemplate(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
SynapseConfiguration
getConfiguration(org.apache.axiom.om.OMElement definitions, Properties properties)
Get (basically builds) the configuration of Synapse built up from an OMElement using the defined factoryClass
getSerializerClass()
Get the class which serializes the specified elementQName
getTagQName()
Get the tag QName of the element piece that will be build using the factorystatic void
reOrderAPIs(SynapseConfiguration config)
Re-order the apis based on the context
-
-
-
Method Detail
-
getConfiguration
public SynapseConfiguration getConfiguration(org.apache.axiom.om.OMElement definitions, Properties properties)
Description copied from interface:ConfigurationFactory
Get (basically builds) the configuration of Synapse built up from an OMElement using the defined factory- Specified by:
getConfiguration
in interfaceConfigurationFactory
- Parameters:
definitions
- OMElement describing the configuration to be build- Returns:
- SynapseConfiguration build using the relevant factory
-
defineRegistry
public static Registry defineRegistry(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
-
defineStartup
public static Startup defineStartup(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
-
defineTaskManager
public static org.apache.synapse.task.TaskManager defineTaskManager(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
-
defineProxy
public static ProxyService defineProxy(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
-
defineEntry
public static Entry defineEntry(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
-
defineEntry
public static Entry defineEntry(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties, Library library)
-
defineSequence
public static Mediator defineSequence(SynapseConfiguration config, org.apache.axiom.om.OMElement ele, Properties properties)
-
defineMediatorTemplate
public static Mediator defineMediatorTemplate(SynapseConfiguration config, org.apache.axiom.om.OMElement ele, Properties properties)
-
defineEndpoint
public static Endpoint defineEndpoint(SynapseConfiguration config, org.apache.axiom.om.OMElement ele, Properties properties)
-
defineEventSource
public static SynapseEventSource defineEventSource(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
-
defineExecutor
public static org.apache.synapse.commons.executors.PriorityExecutor defineExecutor(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
-
defineMessageStore
public static MessageStore defineMessageStore(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
-
defineMessageProcessor
public static MessageProcessor defineMessageProcessor(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
-
defineImport
public static SynapseImport defineImport(SynapseConfiguration config, org.apache.axiom.om.OMElement elt, Properties properties)
-
defineEndpointTemplate
public static Template defineEndpointTemplate(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
-
defineTemplate
public static void defineTemplate(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
-
defineAPI
public static API defineAPI(SynapseConfiguration config, org.apache.axiom.om.OMElement elem)
-
defineAPI
public static API defineAPI(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
-
defineAPI
public static API defineAPI(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties, boolean reOrder)
Add api with the option of re-ordering the api collection based on the context- Parameters:
config
- SynapseConfigurationelem
- OMElement elementproperties
- PropertiesreOrder
- reorder the deployment order based on the context- Returns:
- API api object
-
reOrderAPIs
public static void reOrderAPIs(SynapseConfiguration config)
Re-order the apis based on the context- Parameters:
config
- SynapseConfiguration
-
defineInboundEndpoint
public static InboundEndpoint defineInboundEndpoint(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)
-
getTagQName
public QName getTagQName()
Description copied from interface:ConfigurationFactory
Get the tag QName of the element piece that will be build using the factory- Specified by:
getTagQName
in interfaceConfigurationFactory
- Returns:
- QName describing the element
-
getSerializerClass
public Class getSerializerClass()
Description copied from interface:ConfigurationFactory
Get the class which serializes the specified element- Specified by:
getSerializerClass
in interfaceConfigurationFactory
- Returns:
- Class defining the Serializer
-
-