public class Service extends Object
Constructor and Description |
---|
Service() |
Modifier and Type | Method and Description |
---|---|
static <T> void |
load(Class<T> spi,
ClassLoader cl,
Collection<Class<? extends T>> result)
Look up META-INF/service/SPICLASSNAME from the classloader
and all the discovered classes into the given collection.
|
static <T> List<T> |
loadInstances(ClassLoader classLoader,
Class<T> type)
Poorman's clone of JDK6 ServiceLoader.
|
public static <T> List<T> loadInstances(ClassLoader classLoader, Class<T> type) throws IOException
IOException
public static <T> void load(Class<T> spi, ClassLoader cl, Collection<Class<? extends T>> result)
Copyright © 2018. All rights reserved.