public final class InstanceDiscovery extends Object
META-INF/services/[type_name]
under classpath based on Java Service API standard.| Modifier and Type | Method and Description |
|---|---|
static <T> T |
instanceOf(Class<T> type) |
static <T> T |
instanceOf(Class<T> type,
ClassLoader loader) |
static <T> T |
instanceOf(Class<T> type,
ClassLoader loader,
InstanceScope scope) |
static <T> T |
instanceOf(Class<T> type,
ClassLoader loader,
InstanceScope scope,
InstanceCreator creator) |
static <T> List<T> |
instancesOf(Class<T> type) |
static <T> List<T> |
instancesOf(Class<T> type,
ClassLoader loader) |
static <T> List<T> |
instancesOf(Class<T> type,
ClassLoader loader,
InstanceScope scope) |
static <T> List<T> |
instancesOf(Class<T> type,
ClassLoader loader,
InstanceScope scope,
InstanceCreator creator) |
static <T> Class<? extends T> |
typeOf(Class<T> type) |
static <T> Class<? extends T> |
typeOf(Class<T> type,
ClassLoader loader) |
static <T> List<Class<? extends T>> |
typesOf(Class<T> type) |
static <T> List<Class<? extends T>> |
typesOf(Class<T> type,
ClassLoader loader) |
public static <T> List<Class<? extends T>> typesOf(Class<T> type, ClassLoader loader)
public static <T> Class<? extends T> typeOf(Class<T> type, ClassLoader loader)
public static <T> List<T> instancesOf(Class<T> type, ClassLoader loader)
public static <T> List<T> instancesOf(Class<T> type, ClassLoader loader, InstanceScope scope)
public static <T> List<T> instancesOf(Class<T> type, ClassLoader loader, InstanceScope scope, InstanceCreator creator)
public static <T> T instanceOf(Class<T> type)
public static <T> T instanceOf(Class<T> type, ClassLoader loader)
public static <T> T instanceOf(Class<T> type, ClassLoader loader, InstanceScope scope)
public static <T> T instanceOf(Class<T> type, ClassLoader loader, InstanceScope scope, InstanceCreator creator)
Copyright © 2018. All Rights Reserved.