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
BeanInfoFactoryimplementation that evaluates whether bean classes have "non-standard" JavaBeans setter methods and are thus candidates for introspection by Spring's (package-visible)ExtendedBeanInfoimplementation.Ordered at
Ordered.LOWEST_PRECEDENCEto allow other user-definedBeanInfoFactorytypes 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 BeanInfogetBeanInfo(Class<?> beanClass)Return anExtendedBeanInfofor the given bean class, if applicable.intgetOrder()Get the order value of this object.
Constructor Detail
ExtendedBeanInfoFactory
public ExtendedBeanInfoFactory()
Method Detail
getBeanInfo
public BeanInfo getBeanInfo(Class<?> beanClass) throws IntrospectionException
Return anExtendedBeanInfofor the given bean class, if applicable.- Specified by:
getBeanInfoin interfaceBeanInfoFactory- Parameters:
beanClass- the bean class- Returns:
- the BeanInfo, or
nullif the given class is not supported - Throws:
IntrospectionException- in case of exceptions
getOrder
public int getOrder()
Description copied from interface:OrderedGet 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-startupvalues).Same order values will result in arbitrary sort positions for the affected objects.
- Specified by:
getOrderin interfaceOrdered- Returns:
- the order value
- See Also:
Ordered.HIGHEST_PRECEDENCE,Ordered.LOWEST_PRECEDENCE