public class ServiceLoader<S> extends Object implements Iterable<S>
| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceLoader.ServicesIterator<S> |
| Modifier and Type | Method and Description |
|---|---|
ServiceLoader.ServicesIterator<S> |
iterator() |
static <S> ServiceLoader<S> |
load(Class<S> service) |
static <S> ServiceLoader<S> |
load(Class<S> service,
ClassLoader loader) |
void |
reload() |
void |
setConstructorParameters(Class<?>[] constructorParameterTypes,
Object[] constructorParameters) |
public void setConstructorParameters(Class<?>[] constructorParameterTypes, Object[] constructorParameters)
public ServiceLoader.ServicesIterator<S> iterator()
public void reload()
public static <S> ServiceLoader<S> load(Class<S> service)
public static <S> ServiceLoader<S> load(Class<S> service, ClassLoader loader)