Top Description Constructors Methods
org.springframework.beans

pack-priv Class SimpleBeanInfoFactory

extends Object
implements BeanInfoFactory, Ordered
Class Inheritance
All Implemented Interfaces
org.springframework.core.Ordered, org.springframework.beans.BeanInfoFactory
Imports
java.beans.BeanDescriptor, .BeanInfo, .IntrospectionException, .PropertyDescriptor, .SimpleBeanInfo, java.util.Collection, org.springframework.core.Ordered, org.springframework.lang.NonNull

BeanInfoFactory implementation that bypasses the standard java.beans.Introspector for faster introspection, reduced to basic property determination (as commonly needed in Spring).

Used by default in 6.0 through direct invocation from CachedIntrospectionResults. Potentially 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.

Author
Juergen Hoeller
Since
5.3.24
See Also
ExtendedBeanInfoFactory, CachedIntrospectionResults

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public BeanInfo
getBeanInfo(Class<?>
the bean class
beanClass
)

Implements org.springframework.beans.BeanInfoFactory.getBeanInfo.

Return the bean info for the given class, if supported.
public int
getOrder()

Implements org.springframework.core.Ordered.getOrder.

Get the order value of this object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SimpleBeanInfoFactoryback to summary
pack-priv SimpleBeanInfoFactory()

Method Detail

getBeanInfoback to summary
public BeanInfo getBeanInfo(Class<?> beanClass) throws IntrospectionException

Implements org.springframework.beans.BeanInfoFactory.getBeanInfo.

Doc from org.springframework.beans.BeanInfoFactory.getBeanInfo.

Return the bean info for the given class, if supported.

Parameters
beanClass:Class<?>

the bean class

Returns:BeanInfo

the BeanInfo, or null if the given class is not supported

Annotations
@Override
@NonNull
Exceptions
IntrospectionException:
in case of exceptions
getOrderback to summary
public int getOrder()

Implements org.springframework.core.Ordered.getOrder.

Doc from org.springframework.core.Ordered.getOrder.

Get the order value of this object.

Higher 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.

Returns:int

the order value

Annotations
@Override