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 ClassLoader
ClassFinder
public 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 typeClassFinder
public static ClassFinder<?> findTypes(ClassLoader loader)
ClassFinder
to search for types.loader
- find with the given ClassLoader
ClassFinder
public static ClassFinder<?> findTypes()
ClassFinder
to search for types.ClassFinder
public static ResourceFinder findResources(ClassLoader loader)
ResourceFinder
to search for resources.loader
- find with the given ClassLoader
ResourceFinder
public static ResourceFinder findResources()
ResourceFinder
to search for resources.ResourceFinder