public class CachingIntrospector extends java.lang.Object implements ClassIntrospector
introspector that caches all class descriptors.
It can examine either accessible or supported fields/methods/constructors.
It simply caches all class descriptors.
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.Class,ClassDescriptor> |
cache |
protected boolean |
enhancedProperties |
protected boolean |
includeFieldsAsProperties |
protected java.lang.String[] |
propertyFieldPrefix |
protected boolean |
scanAccessible |
| Constructor and Description |
|---|
CachingIntrospector()
Default constructor.
|
CachingIntrospector(boolean scanAccessible,
boolean enhancedProperties,
boolean includeFieldsAsProperties,
java.lang.String[] propertyFieldPrefix)
Creates new caching
ClassIntrospector. |
| Modifier and Type | Method and Description |
|---|---|
protected ClassDescriptor |
describeClass(java.lang.Class type)
Describes a class by creating a new instance of
ClassDescriptor
that examines all accessible methods and fields. |
ClassDescriptor |
lookup(java.lang.Class type)
Returns class descriptor for specified type.
|
ClassDescriptor |
register(java.lang.Class type)
Registers new type.
|
void |
reset()
Clears all cached data.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetprotected final java.util.Map<java.lang.Class,ClassDescriptor> cache
protected final boolean scanAccessible
protected final boolean enhancedProperties
protected final boolean includeFieldsAsProperties
protected final java.lang.String[] propertyFieldPrefix
public CachingIntrospector()
public CachingIntrospector(boolean scanAccessible,
boolean enhancedProperties,
boolean includeFieldsAsProperties,
java.lang.String[] propertyFieldPrefix)
ClassIntrospector. It may scan
accessible or supported fields, methods or
constructors.public ClassDescriptor lookup(java.lang.Class type)
lookup in interface ClassIntrospectorpublic ClassDescriptor register(java.lang.Class type)
register in interface ClassIntrospectorprotected ClassDescriptor describeClass(java.lang.Class type)
ClassDescriptor
that examines all accessible methods and fields.public void reset()
reset in interface ClassIntrospectorCopyright © 2003-present Jodd Team