public class ServiceResolver extends Object
| Constructor and Description |
|---|
ServiceResolver() |
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
getServices(Class<T> intf)
This method returns the list of service implementations that implement
the supplied interface.
|
static <T> CompletableFuture<T> |
getSingletonService(Class<T> intf)
This method identifies a service implementation that implements
the supplied interface, and returns it as a singleton, so that subsequent
calls for the same service will get the same instance.
|
public static <T> CompletableFuture<T> getSingletonService(Class<T> intf)
T - The service interfaceintf - The interfaceCopyright © 2015 Red Hat, Inc.. All rights reserved.