Package org.apache.cxf.bus.managers
Class ServerRegistryImpl
- java.lang.Object
-
- org.apache.cxf.bus.managers.ServerRegistryImpl
-
- All Implemented Interfaces:
BusLifeCycleListener
,ServerRegistry
public class ServerRegistryImpl extends Object implements ServerRegistry, BusLifeCycleListener
-
-
Constructor Summary
Constructors Constructor Description ServerRegistryImpl()
ServerRegistryImpl(Bus b)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bus
getBus()
List<Server>
getServers()
void
initComplete()
Invoked when theBus
has been initialized.void
postShutdown()
Invoked after theBus
is shutdown.void
preShutdown()
Invoked before theBus
is shutdown.void
register(Server server)
void
setBus(Bus bus)
void
unregister(Server server)
-
-
-
Constructor Detail
-
ServerRegistryImpl
public ServerRegistryImpl()
-
ServerRegistryImpl
public ServerRegistryImpl(Bus b)
-
-
Method Detail
-
getBus
public Bus getBus()
-
setBus
public final void setBus(Bus bus)
-
register
public void register(Server server)
- Specified by:
register
in interfaceServerRegistry
-
unregister
public void unregister(Server server)
- Specified by:
unregister
in interfaceServerRegistry
-
getServers
public List<Server> getServers()
- Specified by:
getServers
in interfaceServerRegistry
-
initComplete
public void initComplete()
Description copied from interface:BusLifeCycleListener
Invoked when theBus
has been initialized.- Specified by:
initComplete
in interfaceBusLifeCycleListener
-
preShutdown
@PreDestroy public void preShutdown()
Description copied from interface:BusLifeCycleListener
Invoked before theBus
is shutdown.- Specified by:
preShutdown
in interfaceBusLifeCycleListener
-
postShutdown
public void postShutdown()
Description copied from interface:BusLifeCycleListener
Invoked after theBus
is shutdown.- Specified by:
postShutdown
in interfaceBusLifeCycleListener
-
-