Package com.vaadin.flow.server.scanner
Class ReflectionsClassFinder
java.lang.Object
com.vaadin.flow.server.scanner.ReflectionsClassFinder
- All Implemented Interfaces:
ClassFinder,Serializable
A class finder using org.reflections.
- Since:
- 2.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.flow.server.frontend.scanner.ClassFinder
ClassFinder.CachedClassFinder, ClassFinder.DefaultClassFinder -
Constructor Summary
ConstructorsConstructorDescriptionReflectionsClassFinder(ClassLoader classLoader, URL... urls) ReflectionsClassFinder(URL... urls) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetAnnotatedClasses(Class<? extends Annotation> clazz) getResource(String name) getSubTypesOf(Class<T> type) <T> Class<T>booleanshouldInspectClass(String className) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.server.frontend.scanner.ClassFinder
getAnnotatedClasses, getSubTypesOf
-
Constructor Details
-
ReflectionsClassFinder
Constructor.- Parameters:
urls- the list of urls for finding classes.
-
ReflectionsClassFinder
-
-
Method Details
-
getAnnotatedClasses
- Specified by:
getAnnotatedClassesin interfaceClassFinder
-
getResource
- Specified by:
getResourcein interfaceClassFinder
-
shouldInspectClass
- Specified by:
shouldInspectClassin interfaceClassFinder
-
loadClass
- Specified by:
loadClassin interfaceClassFinder- Throws:
ClassNotFoundException
-
getSubTypesOf
- Specified by:
getSubTypesOfin interfaceClassFinder
-
getClassLoader
- Specified by:
getClassLoaderin interfaceClassFinder
-