public class ServiceLoaderServiceRegistry extends AbstractServiceRegistry
ServiceLoader
mechanism.| Constructor and Description |
|---|
ServiceLoaderServiceRegistry() |
| Modifier and Type | Method and Description |
|---|---|
<T> Set<T> |
getServices(Class<T> serviceInterface)
Gets a set of all the services that have been registered for the given service
interface.
|
<T> T |
getSingleService(Class<T> serviceInterface)
Gets a single service.
|
addServiceListener, close, init, removeServiceListenerpublic <T> T getSingleService(Class<T> serviceInterface) throws IllegalStateException
ServiceRegistrypublic <T> Set<T> getServices(Class<T> serviceInterface)
ServiceRegistryCopyright © 2013–2015 JBoss, a division of Red Hat. All rights reserved.