public interface BeanInfoFactory
BeanInfoFactories are are instantiated by the CachedIntrospectionResults
,
by using the SpringFactoriesLoader
utility
class.
When a <code>BeanInfo</code> is to be created, the CachedIntrospectionResults
will iterate through the discovered factories, calling getBeanInfo(Class)
on each one. If null
is returned, the next factory will
be queried. If none of the factories support the class, an standard <code>BeanInfo</code>
is created as a default.
Note that the SpringFactoriesLoader
sorts the BeanInfoFactory
instances by
@Order
, so that ones with
a higher precedence come first.
Modifier and Type | Method and Description |
---|---|
java.beans.BeanInfo |
getBeanInfo(java.lang.Class<?> beanClass)
Returns the bean info for the given class, if supported.
|
java.beans.BeanInfo getBeanInfo(java.lang.Class<?> beanClass) throws java.beans.IntrospectionException
beanClass
- the bean classnull
if not the given class is not supportedjava.beans.IntrospectionException
- in case of exceptions