|
JBoss Modular Service Kernel API 1.0.0.CR2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.msc.service.DelegatingServiceRegistry
public final class DelegatingServiceRegistry
An "insulated" view of a service registry which prevents access to other public methods on the delegate registry object.
Constructor Summary | |
---|---|
DelegatingServiceRegistry(ServiceRegistry delegate)
Construct a new instance. |
Method Summary | |
---|---|
ServiceController<?> |
getRequiredService(ServiceName serviceName)
Get a service, throwing an exception if it is not found. |
ServiceController<?> |
getService(ServiceName serviceName)
Get a service, returning null if it is not found. |
List<ServiceName> |
getServiceNames()
Get a list of service names installed in this registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegatingServiceRegistry(ServiceRegistry delegate)
delegate
- the registry to delegate toMethod Detail |
---|
public ServiceController<?> getRequiredService(ServiceName serviceName) throws ServiceNotFoundException
getRequiredService
in interface ServiceRegistry
serviceName
- the service name
ServiceNotFoundException
- if the service is not present in the registrypublic ServiceController<?> getService(ServiceName serviceName)
null
if it is not found.
getService
in interface ServiceRegistry
serviceName
- the service name
null
if it is not foundpublic List<ServiceName> getServiceNames()
getServiceNames
in interface ServiceRegistry
|
JBoss Modular Service Kernel API 1.0.0.CR2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |