@Immutable
public interface BeanIntrospector
BeanIntrospection
instances that are computed at compilation time.Introspected
,
BeanIntrospection
Modifier and Type | Field and Description |
---|---|
static BeanIntrospector |
SHARED
The default shared
BeanIntrospector . |
Modifier and Type | Method and Description |
---|---|
<T> java.util.Optional<BeanIntrospection<T>> |
findIntrospection(java.lang.Class<T> beanType)
Find a
BeanIntrospection for the given bean type. |
default java.util.Collection<BeanIntrospection<java.lang.Object>> |
findIntrospections(java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
Finds introspections for classes annotated with the given stereotype.
|
default java.util.Collection<BeanIntrospection<java.lang.Object>> |
findIntrospections(java.lang.Class<? extends java.lang.annotation.Annotation> stereotype,
java.lang.String... packageNames)
Finds introspections for classes annotated with the given stereotype.
|
java.util.Collection<BeanIntrospection<java.lang.Object>> |
findIntrospections(java.util.function.Predicate<? super BeanIntrospectionReference> filter)
Finds introspections with the given filter.
|
default <T> BeanIntrospection<T> |
getIntrospection(java.lang.Class<T> beanType)
Retrieves an introspection for the given type.
|
static final BeanIntrospector SHARED
BeanIntrospector
.@NonNull java.util.Collection<BeanIntrospection<java.lang.Object>> findIntrospections(@NonNull java.util.function.Predicate<? super BeanIntrospectionReference> filter)
filter
- A filter that receives a BeanIntrospectionReference
@NonNull <T> java.util.Optional<BeanIntrospection<T>> findIntrospection(@NonNull java.lang.Class<T> beanType)
BeanIntrospection
for the given bean type.T
- The bean generic typebeanType
- The bean type@NonNull default java.util.Collection<BeanIntrospection<java.lang.Object>> findIntrospections(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
stereotype
- The stereotype@NonNull default java.util.Collection<BeanIntrospection<java.lang.Object>> findIntrospections(@NonNull java.lang.Class<? extends java.lang.annotation.Annotation> stereotype, @NonNull java.lang.String... packageNames)
stereotype
- The stereotypepackageNames
- The package names to include in the search@NonNull default <T> BeanIntrospection<T> getIntrospection(@NonNull java.lang.Class<T> beanType)
T
- The bean generic typebeanType
- The bean typeIntrospectionException
- If no introspection data is found and the bean is not annotated with Introspected