public class SimpleBeanInfoFactory extends Object implements BeanInfoFactory, org.springframework.core.Ordered
BeanInfoFactory implementation that bypasses the standard Introspector
for faster introspection, reduced to basic property determination (as commonly needed in Spring).
To be configured via a META-INF/spring.factories file with the following content,
overriding other custom org.springframework.beans.BeanInfoFactory declarations:
org.springframework.beans.BeanInfoFactory=org.springframework.beans.SimpleBeanInfoFactory
Ordered at Ordered.LOWEST_PRECEDENCE - 1 to override ExtendedBeanInfoFactory
(registered by default in 5.3) if necessary while still allowing other user-defined
BeanInfoFactory types to take precedence.
ExtendedBeanInfoFactory,
CachedIntrospectionResults| Constructor and Description |
|---|
SimpleBeanInfoFactory() |
| Modifier and Type | Method and Description |
|---|---|
BeanInfo |
getBeanInfo(Class<?> beanClass)
Return the bean info for the given class, if supported.
|
int |
getOrder() |
@NonNull public BeanInfo getBeanInfo(Class<?> beanClass) throws IntrospectionException
BeanInfoFactorygetBeanInfo in interface BeanInfoFactorybeanClass - the bean classnull if the given class is not supportedIntrospectionException - in case of exceptionspublic int getOrder()
getOrder in interface org.springframework.core.Ordered