Package org.springframework.beans
Class ExtendedBeanInfoFactory
- java.lang.Object
- org.springframework.beans.ExtendedBeanInfoFactory
- All Implemented Interfaces:
BeanInfoFactory
,Ordered
public class ExtendedBeanInfoFactory extends Object implements BeanInfoFactory, Ordered
BeanInfoFactory
implementation that evaluates whether bean classes have "non-standard" JavaBeans setter methods and are thus candidates for introspection by Spring's (package-visible)ExtendedBeanInfo
implementation.Ordered at
Ordered.LOWEST_PRECEDENCE
to allow other user-definedBeanInfoFactory
types to take precedence.- Since:
- 3.2
- Author:
- Chris Beams
- See Also:
BeanInfoFactory
,CachedIntrospectionResults
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor Summary
Constructors Constructor Description ExtendedBeanInfoFactory()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanInfo
getBeanInfo(Class<?> beanClass)
Return anExtendedBeanInfo
for the given bean class, if applicable.int
getOrder()
Get the order value of this object.
Constructor Detail
ExtendedBeanInfoFactory
public ExtendedBeanInfoFactory()
Method Detail
getBeanInfo
public BeanInfo getBeanInfo(Class<?> beanClass) throws IntrospectionException
Return anExtendedBeanInfo
for the given bean class, if applicable.- Specified by:
getBeanInfo
in interfaceBeanInfoFactory
- Parameters:
beanClass
- the bean class- Returns:
- the BeanInfo, or
null
if the given class is not supported - Throws:
IntrospectionException
- in case of exceptions
getOrder
public int getOrder()
Description copied from interface:Ordered
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.
- Specified by:
getOrder
in interfaceOrdered
- Returns:
- the order value
- See Also:
Ordered.HIGHEST_PRECEDENCE
,Ordered.LOWEST_PRECEDENCE