Package hudson.util
Class Service
- java.lang.Object
-
- hudson.util.Service
-
@Deprecated public class Service extends Object
Deprecated.useServiceLoader
instead.Load classes by looking upMETA-INF/services
.- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description Service()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T> void
load(Class<T> spi, ClassLoader cl, Collection<Class<? extends T>> result)
Deprecated.Look upMETA-INF/service/<i>SPICLASSNAME</i>
from the classloader and all the discovered classes into the given collection.static <T> List<T>
loadInstances(ClassLoader classLoader, Class<T> type)
Deprecated.
-
-
-
Method Detail
-
loadInstances
public static <T> List<T> loadInstances(ClassLoader classLoader, Class<T> type) throws IOException
Deprecated.- Throws:
IOException
-
load
public static <T> void load(Class<T> spi, ClassLoader cl, Collection<Class<? extends T>> result)
Deprecated.Look upMETA-INF/service/<i>SPICLASSNAME</i>
from the classloader and all the discovered classes into the given collection.
-
-