Package org.apache.commons.beanutils
Class DefaultBeanIntrospector
- java.lang.Object
-
- org.apache.commons.beanutils.DefaultBeanIntrospector
-
- All Implemented Interfaces:
BeanIntrospector
public class DefaultBeanIntrospector extends java.lang.Object implements BeanIntrospector
The default
BeanIntrospectorimplementation.This class implements a default bean introspection algorithm based on the JDK classes in the
java.beanspackage. It discovers properties conforming to the Java Beans specification.This class is a singleton. The single instance can be obtained using the
INSTANCEfield. It does not define any state and thus can be shared by arbitrary clients.PropertyUtilsper default uses this instance as its onlyBeanIntrospectorobject.- Since:
- 1.9
- Version:
- $Id$
-
-
Field Summary
Fields Modifier and Type Field Description static BeanIntrospectorINSTANCEThe singleton instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidintrospect(IntrospectionContext icontext)Performs introspection of a specific Java class.
-
-
-
Field Detail
-
INSTANCE
public static final BeanIntrospector INSTANCE
The singleton instance of this class.
-
-
Method Detail
-
introspect
public void introspect(IntrospectionContext icontext)
Performs introspection of a specific Java class. This implementation uses thejava.beans.Introspector.getBeanInfo()method to obtain all property descriptors for the current class and adds them to the passed in introspection context.- Specified by:
introspectin interfaceBeanIntrospector- Parameters:
icontext- the introspection context
-
-