Class Lookup
java.lang.Object
org.openehealth.ipf.commons.core.config.Lookup
Lookup implementation of an interface type using
ServiceLoader
.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Lookup
public Lookup()
-
-
Method Details
-
lookup
Returns the first implementation of T- Type Parameters:
T
- interface type- Parameters:
clazz
- interface- Returns:
- first implementation of T, if any
-
lookupAll
Returns all implementations of T- Type Parameters:
T
- interface type- Parameters:
clazz
- interface- Returns:
- implementations of T or an empty collection
-