public class AccessibleIntrospector extends java.lang.Object implements Introspector
introspector caches all class descriptors.
Only accessible methods and fields are examined.
It does not provide any more subtle logic behind, therefore, it should not be used in environments with dynamic class re-loading. todo: add optional max value for total number of class descriptors stored in cache
SupportedIntrospector| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.Class,ClassDescriptor> |
cache |
| Constructor and Description |
|---|
AccessibleIntrospector() |
| 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 the
ClassDescriptor object for specified class. |
ClassDescriptor |
register(java.lang.Class type)
Registers new class type.
|
void |
reset()
Resets current cache.
|
protected final java.util.Map<java.lang.Class,ClassDescriptor> cache
public ClassDescriptor lookup(java.lang.Class type)
ClassDescriptor object for specified class.lookup in interface Introspectorpublic ClassDescriptor register(java.lang.Class type)
register in interface Introspectorprotected ClassDescriptor describeClass(java.lang.Class type)
ClassDescriptor
that examines all accessible methods and fields.public void reset()
reset in interface IntrospectorCopyright © 2003-2013 Jodd Team