@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 |
|---|---|
Collection<Class<?>> |
findIntrospectedTypes(Predicate<? super BeanIntrospectionReference<?>> filter)
Finds introspections with the given filter.
|
<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.
|
static BeanIntrospector |
forClassLoader(ClassLoader classLoader)
Creates a new default bean introspector that uses the given
classloader.
|
default <T> BeanIntrospection<T> |
getIntrospection(Class<T> beanType)
Retrieves an introspection for the given type.
|
static final BeanIntrospector SHARED
BeanIntrospector.static BeanIntrospector forClassLoader(ClassLoader classLoader)
classLoader - The class loader to load introspections@NonNull Collection<BeanIntrospection<Object>> findIntrospections(@NonNull Predicate<? super BeanIntrospectionReference<?>> filter)
filter - A filter that receives a BeanIntrospectionReference@NonNull Collection<Class<?>> findIntrospectedTypes(@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