public class DefaultLoaderService extends Object implements LoaderService
ServiceLoader
of Java 1.6 and
uses a fallback for Java 1.5Constructor and Description |
---|
DefaultLoaderService() |
Modifier and Type | Method and Description |
---|---|
<T> List<T> |
load(Class<T> serviceType)
Loads all active implementations for the given service-type
|
<T> List<T> |
load(Class<T> serviceType,
ClassLoader classLoader)
Loads all active implementations for the given service-type
|
public <T> List<T> load(Class<T> serviceType)
LoaderService
load
in interface LoaderService
T
- current typeserviceType
- base type of the services which should be loadedpublic <T> List<T> load(Class<T> serviceType, ClassLoader classLoader)
LoaderService
load
in interface LoaderService
T
- current typeserviceType
- base type of the services which should be loadedCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.