@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> Optional<BeanIntrospection<T>> |
findIntrospection(Class<T> beanType)
Find a
BeanIntrospection for the given bean type. |
default Collection<BeanIntrospection<Object>> |
findIntrospections(Class<? extends Annotation> stereotype)
Finds introspections for classes annotated with the given stereotype.
|
default Collection<BeanIntrospection<Object>> |
findIntrospections(Class<? extends Annotation> stereotype,
String... packageNames)
Finds introspections for classes annotated with the given stereotype.
|
Collection<BeanIntrospection<Object>> |
findIntrospections(Predicate<? super BeanIntrospectionReference> filter)
Finds introspections with the given filter.
|
default <T> BeanIntrospection<T> |
getIntrospection(Class<T> beanType)
Retrieves an introspection for the given type.
|
static final BeanIntrospector SHARED
BeanIntrospector.@Nonnull Collection<BeanIntrospection<Object>> findIntrospections(@Nonnull Predicate<? super BeanIntrospectionReference> filter)
filter - A filter that receives a BeanIntrospectionReference@Nonnull <T> Optional<BeanIntrospection<T>> findIntrospection(@Nonnull Class<T> beanType)
BeanIntrospection for the given bean type.T - The bean generic typebeanType - The bean type@Nonnull default Collection<BeanIntrospection<Object>> findIntrospections(@Nonnull Class<? extends Annotation> stereotype)
stereotype - The stereotype@Nonnull default Collection<BeanIntrospection<Object>> findIntrospections(@Nonnull Class<? extends Annotation> stereotype, @Nonnull String... packageNames)
stereotype - The stereotypepackageNames - The package names to include in the search@Nonnull default <T> BeanIntrospection<T> getIntrospection(@Nonnull 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