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 setEndpointPrefixes(Map<String,String> endpointPrefixes)
           
 void setServiceLocator(ServiceLocator serviceLocator)
           
 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)

setEndpointPrefixes

public void setEndpointPrefixes(Map<String,String> endpointPrefixes)

setServiceLocator

public void setServiceLocator(ServiceLocator serviceLocator)

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–2014 Talend Inc.. All rights reserved.