ServiceLoader
instead.@Deprecated public class Service extends Object
META-INF/services
.Constructor and Description |
---|
Service()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static <T> void |
load(Class<T> spi,
ClassLoader cl,
Collection<Class<? extends T>> result)
Deprecated.
Look up
META-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.
|
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)
META-INF/service/<i>SPICLASSNAME</i>
from the classloader
and all the discovered classes into the given collection.Copyright © 2004–2021. All rights reserved.