org.talend.esb.servicelocator.cxf.internal
Class LocatorRegistrar
java.lang.Object
org.talend.esb.servicelocator.cxf.internal.LocatorRegistrar
- All Implemented Interfaces:
- org.apache.cxf.endpoint.ServerLifeCycleListener, ServiceLocator.PostConnectAction
public class LocatorRegistrar
- extends Object
- implements org.apache.cxf.endpoint.ServerLifeCycleListener, ServiceLocator.PostConnectAction
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 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocatorRegistrar
public LocatorRegistrar()
startServer
public void startServer(org.apache.cxf.endpoint.Server server)
- Specified by:
startServer in interface org.apache.cxf.endpoint.ServerLifeCycleListener
stopServer
public void stopServer(org.apache.cxf.endpoint.Server server)
- Specified by:
stopServer in interface org.apache.cxf.endpoint.ServerLifeCycleListener
startListenForServers
public void startListenForServers()
stopListenForServers
public void stopListenForServers()
process
public void process(ServiceLocator lc)
- Description copied from interface:
ServiceLocator.PostConnectAction
- Execute this after the connection to the Service Locator is
established or re-established.
- Specified by:
process in interface ServiceLocator.PostConnectAction
- Parameters:
lc - the Service Locator client that just successfully
connected to the server, must not be null
setBus
public void setBus(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)
registerServer
public void registerServer(org.apache.cxf.endpoint.Server server,
SLProperties props)
Copyright © 2011 Talend Inc.. All Rights Reserved.