BeanInfo object, e.g. as created by
Introspector#getBeanInfo(Class), designed to discover and register
static and/or non-void returning setter methods. For example:
public class Bean {
private Foo foo;
public Foo getFoo() {
return this.foo;
}
public Bean setFoo(Foo foo) {
this.foo = foo;
return this;
}
}
The standard JavaBeans Introspector will discover the getFoo read
method, but will bypass the #setFoo(Foo) write method, because its non-void
returning signature does not comply with the JavaBeans specification.
ExtendedBeanInfo, on the other hand, will recognize and include it. This is
designed to allow APIs with "builder" or method-chaining style setter signatures to be
used within Spring <beans> XML. getPropertyDescriptors() returns all
existing property descriptors from the wrapped BeanInfo as well any added for
non-void returning setters. Both standard ("non-indexed") and
indexed properties are fully supported.
ExtendedBeanInfo(BeanInfo), ExtendedBeanInfoFactory, CachedIntrospectionResults
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | ExtendedBeanInfo.
Sorts PropertyDescriptor instances alpha-numerically to emulate the behavior of
|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final BeanInfo | |
| private static final Log | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| public | ExtendedBeanInfo(BeanInfo
the wrapped delegate)BeanInfo, which is never modifiedWrap the given |
| Modifier and Type | Method and Description |
|---|---|
| private List | |
| private PropertyDescriptor | |
| public BeanInfo[] | getAdditionalBeanInfo()
Implements java. This method enables the current |
| public BeanDescriptor | getBeanDescriptor()
Implements java. Returns the bean descriptor that provides overall information about the bean, such as its display name or its customizer. |
| public int | getDefaultEventIndex()
Implements java. A bean may have a default event typically applied when this bean is used. |
| public int | getDefaultPropertyIndex()
Implements java. A bean may have a default property commonly updated when this bean is customized. |
| public EventSetDescriptor[] | getEventSetDescriptors()
Implements java. Returns the event descriptors of the bean that define the types of events fired by this bean. |
| public Image | getIcon(int
the kind of icon requested iconKind)Implements java. Returns an image that can be used to represent the bean in toolboxes or toolbars. |
| public MethodDescriptor[] | getMethodDescriptors()
Implements java. Returns the method descriptors of the bean that define the externally visible methods supported by this bean. |
| public PropertyDescriptor[] | getPropertyDescriptors()
Implements java. Return the set of |
| private void | |
| public static boolean | |
| private String |