public final class Reflections extends Object
Reflections utilities provides fast and easy way to search for
resources and types.| Modifier and Type | Method and Description |
|---|---|
static ResourceFinder |
findResources()
Return a
ResourceFinder to search for resources. |
static ResourceFinder |
findResources(ClassLoader loader)
Return a
ResourceFinder to search for resources. |
static <T> ClassFinder<T> |
findSubTypesOf(Class<T> type)
Return a
ClassFinder to search for the sub types of the given
type. |
static <T> ClassFinder<T> |
findSubTypesOf(Class<T> type,
ClassLoader loader)
Return a
ClassFinder to search for the sub types of the given
type. |
static ClassFinder<?> |
findTypes()
Return a
ClassFinder to search for types. |
static ClassFinder<?> |
findTypes(ClassLoader loader)
Return a
ClassFinder to search for types. |
public static <T> ClassFinder<T> findSubTypesOf(Class<T> type, ClassLoader loader)
ClassFinder to search for the sub types of the given
type.T - the type to searchtype - the super typeloader - find with the given ClassLoaderClassFinderpublic static <T> ClassFinder<T> findSubTypesOf(Class<T> type)
ClassFinder to search for the sub types of the given
type.T - the type to searchtype - the super typeClassFinderpublic static ClassFinder<?> findTypes(ClassLoader loader)
ClassFinder to search for types.loader - find with the given ClassLoaderClassFinderpublic static ClassFinder<?> findTypes()
ClassFinder to search for types.ClassFinderpublic static ResourceFinder findResources(ClassLoader loader)
ResourceFinder to search for resources.loader - find with the given ClassLoaderResourceFinderpublic static ResourceFinder findResources()
ResourceFinder to search for resources.ResourceFinder