public class SimpleBeanInfoFactory extends Object implements BeanInfoFactory, 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,
CachedIntrospectionResultsHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| 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()
Get the order value of this object.
|
@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()
OrderedHigher values are interpreted as lower priority. As a consequence,
the object with the lowest value has the highest priority (somewhat
analogous to Servlet load-on-startup values).
Same order values will result in arbitrary sort positions for the affected objects.
getOrder in interface OrderedOrdered.HIGHEST_PRECEDENCE,
Ordered.LOWEST_PRECEDENCE