|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jodd.introspector.SimpleIntrospector
public class SimpleIntrospector
Simple Introspector
caches all class descriptors.
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
Field Summary | |
---|---|
protected java.util.Map<java.lang.Class,ClassDescriptor> |
cache
|
Constructor Summary | |
---|---|
SimpleIntrospector()
|
Method Summary | |
---|---|
protected ClassDescriptor |
describeClass(java.lang.Class type)
Describes a class by creating a new instance of ClassDescriptor . |
java.lang.String |
getStatistics()
Returns simple statistics information about all cached descriptors and their usage. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map<java.lang.Class,ClassDescriptor> cache
Constructor Detail |
---|
public SimpleIntrospector()
Method Detail |
---|
public ClassDescriptor lookup(java.lang.Class type)
ClassDescriptor
object for specified class.
lookup
in interface Introspector
public ClassDescriptor register(java.lang.Class type)
register
in interface Introspector
protected ClassDescriptor describeClass(java.lang.Class type)
ClassDescriptor
.
public void reset()
reset
in interface Introspector
public java.lang.String getStatistics()
getStatistics
in interface Introspector
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |