public abstract class ClassPathIntrospector extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
ClassPathIntrospector(ClassFinder finder)
Creates a new instance of class.
|
|
ClassPathIntrospector(ClassPathIntrospector otherIntrospector)
Create a new instance but reusing the instrospector.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
doInvokeAnnotationMethod(Annotation target,
String methodName)
Get the value of the method
methodName from the target
annotation. |
protected Stream<Class<?>> |
getAnnotatedClasses(Class<? extends Annotation> annotationInProjectContext)
Gets the classes annotated with the given
annotationInProjectContext annotation. |
protected URL |
getResource(String name)
Returns a resource
URL given a file name. |
protected Stream<Class<?>> |
getSubtypes(Class<?> type)
Gets the subtypes of the given
type. |
protected <T> T |
invokeAnnotationMethod(Annotation target,
String methodName)
Get the value of the method
methodName from the target
annotation. |
<T> Class<T> |
loadClassInProjectClassLoader(String className)
Returns the annotation class by its FQN.
|
protected ClassPathIntrospector(ClassFinder finder)
finder - the ClassFinder instance to use for class searches.public ClassPathIntrospector(ClassPathIntrospector otherIntrospector)
otherIntrospector - the other instance.protected URL getResource(String name)
URL given a file name.name - the name of the resourceprotected Stream<Class<?>> getAnnotatedClasses(Class<? extends Annotation> annotationInProjectContext)
annotationInProjectContext annotation.annotationInProjectContext - annotation classprotected Stream<Class<?>> getSubtypes(Class<?> type)
type.type - super type for subtype searchtypepublic <T> Class<T> loadClassInProjectClassLoader(String className)
Note that the resulting class is loaded by project classloader ( not the maven plugin classloader).
T - the class to be loadedclassName - the FQN of the class to loadclassName loaded by the project
class loaderprotected <T> T invokeAnnotationMethod(Annotation target, String methodName)
methodName from the target
annotation.target - the target annotationmethodName - the method name to executeprotected Object doInvokeAnnotationMethod(Annotation target, String methodName)
methodName from the target
annotation.target - the target annotationmethodName - the method name to executemethodName invocation on the
targetCopyright © 2000–2025 Vaadin Ltd. All rights reserved.