public class DefaultBeanIntrospector extends Object implements BeanIntrospector
The default BeanIntrospector
implementation.
This class implements a default bean introspection algorithm based on the JDK
classes in the java.beans
package. It discovers properties
conforming to the Java Beans specification.
This class is a singleton. The single instance can be obtained using the
INSTANCE
field. It does not define any state and thus can be
shared by arbitrary clients. PropertyUtils
per default uses this
instance as its only BeanIntrospector
object.
Modifier and Type | Field and Description |
---|---|
static BeanIntrospector |
INSTANCE
The singleton instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
introspect(IntrospectionContext icontext)
Performs introspection of a specific Java class.
|
public static final BeanIntrospector INSTANCE
public void introspect(IntrospectionContext icontext)
java.beans.Introspector.getBeanInfo()
method to obtain
all property descriptors for the current class and adds them to the
passed in introspection context.introspect
in interface BeanIntrospector
icontext
- the introspection contextCopyright © 2000–2016 The Apache Software Foundation. All rights reserved.