T
- The bean type@Internal public interface BeanIntrospectionReference<T> extends AnnotationMetadataProvider, Named
BeanIntrospection
that may or may not be present on the classpath.
This interface allows soft loading a BeanIntrospection
without knowing if the class is present on the classpath or not. It also ensures that less memory is occupied as only a reference to the annotation metadata is retained and the full bean can be loaded via the load()
method.
In general results of the load()
do not need to be cached as object creation is cheap and no runtime analysis is performed so it is extremely fast.
EMPTY
Modifier and Type | Method and Description |
---|---|
Class<T> |
getBeanType()
The type.
|
boolean |
isPresent() |
BeanIntrospection<T> |
load()
Loads the introspection.
|
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation
boolean isPresent()
@Nonnull Class<T> getBeanType()
isPresent()
should be checked first.IntrospectionException
- if the introspection cannot be loaded@Nonnull BeanIntrospection<T> load()
IntrospectionException
- if the introspection cannot be loaded