public class OsgiServiceLoader
extends java.lang.Object
ServiceLoader
.
This class is used by the ServiceLocator
(via
ClassLoading.servicesOfType(Class)
) to discover services when running inside an OSGi
environment. This is needed when the required Ehcache services are split across multiple OSGi bundles.
Constructor and Description |
---|
OsgiServiceLoader() |
Modifier and Type | Method and Description |
---|---|
static <T> java.lang.Iterable<T> |
load(java.lang.Class<T> serviceType)
Locate all services of type
T . |