public class ExtensionLoader extends Object
| Constructor and Description |
|---|
ExtensionLoader() |
| Modifier and Type | Method and Description |
|---|---|
static ClassLoader |
getClassLoader()
Retrieve a class loader covering the extensions.
|
static <T> List<T> |
load_instances(Class<T> cl)
Discover and load a list of services.
|
static void |
loadExtensions(String ename,
Class<?> cl)
Trigger the loading of extensions.
|
public static ClassLoader getClassLoader()
public static void loadExtensions(String ename, Class<?> cl)
ename - name of the optional extension foldercl - caller class (needed to find the basename)public static <T> List<T> load_instances(Class<T> cl)
T - the type of the returned list of servicescl - the base class to discover services (of type T)Copyright © 2012–2020. All rights reserved.