public interface BeanIntrospector
Definition of an interface for components that can perform introspection on bean classes.
Before PropertyUtils
can be used for interaction with a specific Java
class, the class's properties have to be determined. This is called
introspection and is initiated automatically on demand.
PropertyUtils
does not perform introspection on its own, but
delegates this task to one or more objects implementing this interface. This
makes it possible to customize introspection which may be useful for certain
code bases using non-standard conventions for accessing properties.
Modifier and Type | Method and Description |
---|---|
void |
introspect(IntrospectionContext icontext)
Performs introspection on a Java class.
|
void introspect(IntrospectionContext icontext) throws IntrospectionException
IntrospectionContext
object. A typical implementation has to obtain this class, determine its
properties according to the rules it implements, and add them to the
passed in context object.icontext
- the context object for interaction with the initiator of
the introspection requestIntrospectionException
- if an error occurs during introspectionCopyright © 2000–2019 The Apache Software Foundation. All rights reserved.