public class ServiceRegistryUtil extends Object
| Constructor and Description |
|---|
ServiceRegistryUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Set<T> |
getServices(Class<T> serviceInterface)
Get a set of service implementations for a given interface.
|
static <T> T |
getSingleService(Class<T> serviceInterface)
Gets a single service by its interface.
|
public static <T> T getSingleService(Class<T> serviceInterface) throws IllegalStateException
serviceInterface - the service interfaceIllegalStateException - method has been invoked at an illegal or inappropriate timeCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.