|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceRegistry
A service registry. Registries can return services by name, or get a collection of service names.
| 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. |
| Method Detail |
|---|
ServiceController<?> getRequiredService(ServiceName serviceName)
throws ServiceNotFoundException
serviceName - the service name
ServiceNotFoundException - if the service is not present in the registryServiceController<?> getService(ServiceName serviceName)
null if it is not found.
serviceName - the service name
null if it is not foundList<ServiceName> getServiceNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||