Top Description Fields Constructors Methods
org.springframework.beans

public Class ExtendedBeanInfoFactory

extends StandardBeanInfoFactory
Class Inheritance
Imports
java.beans.BeanInfo, .IntrospectionException, java.lang.reflect.Method, org.springframework.core.Ordered, org.springframework.lang.NonNull

Extension of StandardBeanInfoFactory that supports "non-standard" JavaBeans setter methods through introspection by Spring's (package-visible) ExtendedBeanInfo implementation.

To be configured via a META-INF/spring.factories file with the following content: org.springframework.beans.BeanInfoFactory=org.springframework.beans.ExtendedBeanInfoFactory

Ordered at Ordered#LOWEST_PRECEDENCE to allow other user-defined BeanInfoFactory types to take precedence.

Authors
Chris Beams, Juergen Hoeller
Since
3.2
See Also
StandardBeanInfoFactory, CachedIntrospectionResults

Field Summary

Inherited from org.springframework.beans.StandardBeanInfoFactory:
IGNORE_BEANINFO_PROPERTY_NAME

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Overrides org.springframework.beans.StandardBeanInfoFactory.getBeanInfo.

Implements org.springframework.beans.BeanInfoFactory.getBeanInfo.

Return the bean info for the given class, if supported.
private boolean
supports(Class<?> beanClass)

Return whether the given bean class declares or inherits any non-void returning bean property or indexed property setter methods.

Inherited from org.springframework.beans.StandardBeanInfoFactory:
getOrder

Constructor Detail

ExtendedBeanInfoFactoryback to summary
public ExtendedBeanInfoFactory()

Method Detail

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

Overrides org.springframework.beans.StandardBeanInfoFactory.getBeanInfo.

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
supportsback to summary
private boolean supports(Class<?> beanClass)

Return whether the given bean class declares or inherits any non-void returning bean property or indexed property setter methods.