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-defined
BeanInfoFactory
types to take precedence.
BeanInfoFactory
,
CachedIntrospectionResults
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
ExtendedBeanInfoFactory() |
Modifier and Type | Method and Description |
---|---|
BeanInfo |
getBeanInfo(Class<?> beanClass)
Return an
ExtendedBeanInfo for the given bean class, if applicable. |
int |
getOrder()
Return the order value of this object, with a
higher value meaning greater in terms of sorting.
|
public BeanInfo getBeanInfo(Class<?> beanClass) throws IntrospectionException
ExtendedBeanInfo
for the given bean class, if applicable.getBeanInfo
in interface BeanInfoFactory
beanClass
- the bean classnull
if the given class is not supportedIntrospectionException
- in case of exceptionspublic int getOrder()
Ordered
Normally starting with 0, with Integer.MAX_VALUE
indicating the greatest value. Same order values will result
in arbitrary positions for the affected objects.
Higher values can be interpreted as lower priority. As a consequence, the object with the lowest value has highest priority (somewhat analogous to Servlet "load-on-startup" values).