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

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

public class DynamicLoadbalanceEndpointFactory
extends EndpointFactory

Creates DynamicLoadbalanceEndpoint using an XML configuration.

 <endpoint>
       <dynamicLoadbalance [failover="true|false"] [policy="load balance algorithm"]>
           <membershipHandler
                   class="HandlerClass">
              <property name="some name" value="some domain"/>+
           </membershipHandler>
       </dynamicLoadbalance>
 </endpoint>
 


Method Summary
protected  Endpoint createEndpoint(OMElement epConfig, boolean anonymousEndpoint)
          Creates the Endpoint implementation for the given XML endpoint configuration.
static DynamicLoadbalanceEndpointFactory getInstance()
           
 
Methods inherited from class org.apache.synapse.config.xml.endpoints.EndpointFactory
extractCommonEndpointProperties, extractSpecificEndpointProperties, getEndpointFromElement, getEndpoints, getObjectFromOMNode, handleException, handleException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DynamicLoadbalanceEndpointFactory getInstance()

createEndpoint

protected Endpoint createEndpoint(OMElement epConfig,
                                  boolean anonymousEndpoint)
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 class EndpointFactory
Parameters:
epConfig - OMElement conatining the endpoint configuration.
anonymousEndpoint - false if the endpoint has a name. true otherwise.
Returns:
Endpoint implementation for the given configuration.


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