Package com.axelor.common.reflections
Class Reflections
java.lang.Object
com.axelor.common.reflections.Reflections
The
Reflections utilities provides fast and easy way to search for resources and types.-
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceFinderReturn aResourceFinderto search for resources.static ResourceFinderfindResources(ClassLoader loader) Return aResourceFinderto search for resources.static <T> ClassFinder<T> findSubTypesOf(Class<T> type) Return aClassFinderto search for the sub types of the given type.static <T> ClassFinder<T> findSubTypesOf(Class<T> type, ClassLoader loader) Return aClassFinderto search for the sub types of the given type.static ClassFinder<?> Return aClassFinderto search for types.static ClassFinder<?> findTypes(ClassLoader loader) Return aClassFinderto search for types.
-
Method Details
-
findSubTypesOf
Return aClassFinderto search for the sub types of the given type.- Type Parameters:
T- the type to search- Parameters:
type- the super typeloader- find with the givenClassLoader- Returns:
- an instance of
ClassFinder
-
findSubTypesOf
Return aClassFinderto search for the sub types of the given type.- Type Parameters:
T- the type to search- Parameters:
type- the super type- Returns:
- an instance of
ClassFinder
-
findTypes
Return aClassFinderto search for types.- Parameters:
loader- find with the givenClassLoader- Returns:
- an instance of
ClassFinder
-
findTypes
Return aClassFinderto search for types.- Returns:
- an instance of
ClassFinder
-
findResources
Return aResourceFinderto search for resources.- Parameters:
loader- find with the givenClassLoader- Returns:
- an instance of
ResourceFinder
-
findResources
Return aResourceFinderto search for resources.- Returns:
- an instance of
ResourceFinder
-