org.codehaus.wadi.servicespace.basic
Class BasicServiceRegistry
java.lang.Object
org.codehaus.wadi.servicespace.basic.BasicServiceRegistry
- All Implemented Interfaces:
- Lifecycle, StartableServiceRegistry, ServiceRegistry
public class BasicServiceRegistry
- extends java.lang.Object
- implements StartableServiceRegistry
- Version:
- $Revision: $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicServiceRegistry
public BasicServiceRegistry(ServiceSpace serviceSpace)
getServiceNames
public java.util.List<ServiceName> getServiceNames()
- Specified by:
getServiceNames
in interface ServiceRegistry
getStartedService
public java.lang.Object getStartedService(ServiceName name)
throws ServiceNotFoundException,
ServiceNotAvailableException
- Specified by:
getStartedService
in interface ServiceRegistry
- Throws:
ServiceNotFoundException
ServiceNotAvailableException
isServiceStarted
public boolean isServiceStarted(ServiceName name)
- Specified by:
isServiceStarted
in interface ServiceRegistry
register
public void register(ServiceName name,
java.lang.Object service)
throws ServiceAlreadyRegisteredException
- Specified by:
register
in interface ServiceRegistry
- Throws:
ServiceAlreadyRegisteredException
registerSingleton
public SingletonServiceHolder registerSingleton(ServiceName name,
java.lang.Object service)
throws ServiceAlreadyRegisteredException
- Specified by:
registerSingleton
in interface ServiceRegistry
- Throws:
ServiceAlreadyRegisteredException
unregister
public void unregister(ServiceName name)
- Specified by:
unregister
in interface ServiceRegistry
start
public void start()
throws java.lang.Exception
- Specified by:
start
in interface Lifecycle
- Throws:
java.lang.Exception
stop
public void stop()
throws java.lang.Exception
- Specified by:
stop
in interface Lifecycle
- Throws:
java.lang.Exception
stopServices
protected void stopServices(java.util.Collection services)
Copyright © 2010. All Rights Reserved.