org.apache.synapse.config.xml.endpoints
Class XMLToEndpointMapper

java.lang.Object
  extended by org.apache.synapse.config.xml.endpoints.XMLToEndpointMapper
All Implemented Interfaces:
XMLToObjectMapper

public class XMLToEndpointMapper
extends Object
implements XMLToObjectMapper

This is a generic XMLToObjectMapper implementation for all endpoint types. Use this if the endpoint type is not known at the time mapper is created. If the endpoint type is known use the EndpointFactory implementation for that specific endpoint.

See Also:
XMLToObjectMapper

Method Summary
static XMLToEndpointMapper getInstance()
           
 Object getObjectFromOMNode(OMNode om, Properties properties)
          Constructs the Endpoint implementation for the given OMNode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static XMLToEndpointMapper getInstance()

getObjectFromOMNode

public Object getObjectFromOMNode(OMNode om,
                                  Properties properties)
Constructs the Endpoint implementation for the given OMNode.

Specified by:
getObjectFromOMNode in interface XMLToObjectMapper
Parameters:
om - OMNode containing endpoint configuration. This should be an OMElement.
properties - bag of properties to pass in any information to the factory
Returns:
Endpoint implementation for the given OMNode.


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.