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 APIdefineAPI(SynapseConfiguration config, org.apache.axiom.om.OMElement elem)static APIdefineAPI(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)static APIdefineAPI(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 EndpointdefineEndpoint(SynapseConfiguration config, org.apache.axiom.om.OMElement ele, Properties properties)static TemplatedefineEndpointTemplate(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)static EntrydefineEntry(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)static EntrydefineEntry(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties, Library library)static SynapseEventSourcedefineEventSource(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)static org.apache.synapse.commons.executors.PriorityExecutordefineExecutor(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)static SynapseImportdefineImport(SynapseConfiguration config, org.apache.axiom.om.OMElement elt, Properties properties)static InboundEndpointdefineInboundEndpoint(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)static MediatordefineMediatorTemplate(SynapseConfiguration config, org.apache.axiom.om.OMElement ele, Properties properties)static MessageProcessordefineMessageProcessor(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)static MessageStoredefineMessageStore(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)static ProxyServicedefineProxy(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)static RegistrydefineRegistry(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)static MediatordefineSequence(SynapseConfiguration config, org.apache.axiom.om.OMElement ele, Properties properties)static StartupdefineStartup(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)static org.apache.synapse.task.TaskManagerdefineTaskManager(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)static voiddefineTemplate(SynapseConfiguration config, org.apache.axiom.om.OMElement elem, Properties properties)SynapseConfigurationgetConfiguration(org.apache.axiom.om.OMElement definitions, Properties properties)Get (basically builds) the configuration of Synapse built up from an OMElement using the defined factoryClassgetSerializerClass()Get the class which serializes the specified elementQNamegetTagQName()Get the tag QName of the element piece that will be build using the factorystatic voidreOrderAPIs(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:ConfigurationFactoryGet (basically builds) the configuration of Synapse built up from an OMElement using the defined factory- Specified by:
getConfigurationin 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:ConfigurationFactoryGet the tag QName of the element piece that will be build using the factory- Specified by:
getTagQNamein interfaceConfigurationFactory- Returns:
- QName describing the element
-
getSerializerClass
public Class getSerializerClass()
Description copied from interface:ConfigurationFactoryGet the class which serializes the specified element- Specified by:
getSerializerClassin interfaceConfigurationFactory- Returns:
- Class defining the Serializer
-
-