public class SingleBusLocatorRegistrar extends Object implements org.apache.cxf.endpoint.ServerLifeCycleListener, ServiceLocator.PostConnectAction
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.| Constructor and Description |
|---|
SingleBusLocatorRegistrar(org.apache.cxf.Bus bus) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.CamelContext |
getCamelContext() |
void |
process(ServiceLocator lc)
Execute this after the connection to the Service Locator is
established or re-established.
|
void |
registerServer(org.apache.cxf.endpoint.Server server) |
void |
registerServer(org.apache.cxf.endpoint.Server server,
SLProperties props) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setEndpointPrefix(String endpointPrefix) |
void |
setEndpointPrefixes(Map<String,String> endpointPrefixes) |
void |
setServiceLocator(ServiceLocator serviceLocator) |
void |
startListenForServers() |
void |
startServer(org.apache.cxf.endpoint.Server server) |
void |
stopAllServersAndRemoveCamelContext() |
void |
stopListenForServers() |
void |
stopServer(org.apache.cxf.endpoint.Server server) |
public SingleBusLocatorRegistrar(org.apache.cxf.Bus bus)
public void startServer(org.apache.cxf.endpoint.Server server)
startServer in interface org.apache.cxf.endpoint.ServerLifeCycleListenerpublic void stopServer(org.apache.cxf.endpoint.Server server)
stopServer in interface org.apache.cxf.endpoint.ServerLifeCycleListenerpublic void stopAllServersAndRemoveCamelContext()
public void startListenForServers()
public void stopListenForServers()
public void process(ServiceLocator lc)
ServiceLocator.PostConnectActionprocess in interface ServiceLocator.PostConnectActionlc - the Service Locator client that just successfully
connected to the server, must not be nullpublic void setEndpointPrefix(String endpointPrefix)
public void setServiceLocator(ServiceLocator serviceLocator)
public void registerServer(org.apache.cxf.endpoint.Server server)
public void registerServer(org.apache.cxf.endpoint.Server server,
SLProperties props)
public org.apache.camel.CamelContext getCamelContext()
public void setCamelContext(org.apache.camel.CamelContext camelContext)
Copyright © 2011–2019 Talend Inc.. All rights reserved.