public class Lookup extends Object
ServiceLoader
.Constructor and Description |
---|
Lookup() |
Modifier and Type | Method and Description |
---|---|
static <T> Optional<T> |
lookup(Class<T> clazz)
Returns the first implementation of T
|
static <T> Collection<? extends T> |
lookupAll(Class<T> clazz)
Returns all implementations of T
|
public static <T> Optional<T> lookup(Class<T> clazz)
T
- interface typeclazz
- interfacepublic static <T> Collection<? extends T> lookupAll(Class<T> clazz)
T
- interface typeclazz
- interfaceCopyright © 2018 Open eHealth Foundation. All rights reserved.