Class ClassEndpointFactory
- java.lang.Object
-
- org.apache.synapse.config.xml.endpoints.EndpointFactory
-
- org.apache.synapse.config.xml.endpoints.ClassEndpointFactory
-
- All Implemented Interfaces:
XMLToObjectMapper
public class ClassEndpointFactory extends EndpointFactory
This EndpointFactory will be used as an extension point for defining Endpoints externally. The endpoint configuration will look similar to the one shown below;*
-
-
Field Summary
Fields Modifier and Type Field Description static QName
CLASS_QNAME
static QName
NAME_QNAME
static QName
PARAMETER_QNAME
-
Fields inherited from class org.apache.synapse.config.xml.endpoints.EndpointFactory
ON_FAULT_Q
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Endpoint
createEndpoint(org.apache.axiom.om.OMElement epConfig, boolean anonymousEndpoint, Properties properties)
Creates the Endpoint implementation for the given XML endpoint configuration.static ClassEndpointFactory
getInstance()
-
Methods inherited from class org.apache.synapse.config.xml.endpoints.EndpointFactory
extractSpecificEndpointProperties, getEndpointDefinitionFactory, getEndpointFromElement, getEndpointFromElement, getEndpoints, getObjectFromOMNode, handleException, handleException, processProperties, setEndpointDefinitionFactory
-
-
-
-
Method Detail
-
getInstance
public static ClassEndpointFactory getInstance()
-
createEndpoint
protected Endpoint createEndpoint(org.apache.axiom.om.OMElement epConfig, boolean anonymousEndpoint, Properties properties)
Description copied from class:EndpointFactory
Creates the Endpoint implementation for the given XML endpoint configuration. If the endpoint configuration is an inline one, it should be an anonymous endpoint. If it is defined as an immediate child element of the definitions tag it should have a name, which is used as the key in local registry.- Specified by:
createEndpoint
in classEndpointFactory
- Parameters:
epConfig
- OMElement containing the endpoint configuration.anonymousEndpoint
- false if the endpoint has a name. true otherwise.properties
- bag of properties to pass in any information to the factory- Returns:
- Endpoint implementation for the given configuration.
-
-