org.talend.esb.servicelocator.cxf.internal
Class LocatorRegistrar

java.lang.Object
  extended by org.talend.esb.servicelocator.cxf.internal.LocatorRegistrar

public class LocatorRegistrar
extends Object

The LocatorRegistrar is responsible for registering the endpoints of CXF Servers at the Service Locator. The Servers endpoint can either be registered explicitly or the LocatorRegistrar can be enabled to listen for all Servers of a specific bus that are in the process to start and to register them all.

If a server which was registered before stops the LocatorRegistrar automatically unregisters from the Service Locator.


Constructor Summary
LocatorRegistrar()
           
 
Method Summary
 void registerServer(org.apache.cxf.endpoint.Server server, org.apache.cxf.Bus bus)
           
 void registerServer(org.apache.cxf.endpoint.Server server, SLProperties props, org.apache.cxf.Bus bus)
           
 void setEndpointPrefix(String endpointPrefix)
           
 void setServiceLocator(ServiceLocator locatorClient)
           
 void startListenForServers(org.apache.cxf.Bus bus)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocatorRegistrar

public LocatorRegistrar()
Method Detail

startListenForServers

public void startListenForServers(org.apache.cxf.Bus bus)

setEndpointPrefix

public void setEndpointPrefix(String endpointPrefix)

setServiceLocator

public void setServiceLocator(ServiceLocator locatorClient)

registerServer

public void registerServer(org.apache.cxf.endpoint.Server server,
                           org.apache.cxf.Bus bus)

registerServer

public void registerServer(org.apache.cxf.endpoint.Server server,
                           SLProperties props,
                           org.apache.cxf.Bus bus)


Copyright © 2011 Talend Inc.. All Rights Reserved.