public interface ServiceRegistry
Modifier and Type | Method and Description |
---|---|
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.
|
ServiceController<?> getRequiredService(ServiceName serviceName) throws ServiceNotFoundException
serviceName
- the service nameServiceNotFoundException
- if the service is not present in the registryServiceController<?> getService(ServiceName serviceName)
null
if it is not found.serviceName
- the service namenull
if it is not foundList<ServiceName> getServiceNames()
Copyright © 2018 JBoss by Red Hat. All rights reserved.