|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjodd.introspector.AccessibleIntrospector
public class AccessibleIntrospector
Default 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| Field Summary | |
|---|---|
protected Map<Class,ClassDescriptor> |
cache
|
| Constructor Summary | |
|---|---|
AccessibleIntrospector()
|
|
| Method Summary | |
|---|---|
protected ClassDescriptor |
describeClass(Class type)
Describes a class by creating a new instance of ClassDescriptor
that examines all accessible methods and fields. |
ClassDescriptor |
lookup(Class type)
Returns the ClassDescriptor object for specified class. |
ClassDescriptor |
register(Class type)
Registers new class type. |
void |
reset()
Resets current cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Map<Class,ClassDescriptor> cache
| Constructor Detail |
|---|
public AccessibleIntrospector()
| Method Detail |
|---|
public ClassDescriptor lookup(Class type)
ClassDescriptor object for specified class.
lookup in interface Introspectorpublic ClassDescriptor register(Class type)
register in interface Introspectorprotected ClassDescriptor describeClass(Class type)
ClassDescriptor
that examines all accessible methods and fields.
public void reset()
reset in interface Introspector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||