Interface ServiceResolver
- All Known Implementing Classes:
DefaultServiceResolver
public interface ServiceResolver
A resolver of Java services.
-
Method Summary
Modifier and TypeMethodDescription<T> Iterable
<T> loadJavaServices
(Class<T> serviceContract) Discovers and instantiates implementations of the named service contract.
-
Method Details
-
loadJavaServices
Discovers and instantiates implementations of the named service contract.NOTE : We are talking about services as defined by
ServiceLoader
.- Type Parameters:
T
- The type of the service contract- Parameters:
serviceContract
- The java type defining the service contract- Returns:
- The ordered set of discovered services.
-