|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjodd.introspector.WeakIntrospector
public class WeakIntrospector
Smarter Introspector caches class data
together with class loader information. Therefore, if classes are reloaded dynamically,
this introspector will maintains its cache.
| Field Summary | |
|---|---|
protected Map<ClassLoader,Map<String,ClassDescriptor>> |
cache
|
| Constructor Summary | |
|---|---|
WeakIntrospector()
|
|
| Method Summary | |
|---|---|
protected ClassDescriptor |
describeClass(Class type)
Describes a class by creating a new instance of ClassDescriptor. |
protected Map<String,ClassDescriptor> |
getClassDescriptorMap(Class type)
Returns class descriptor map. |
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 Map<ClassLoader,Map<String,ClassDescriptor>> cache
| Constructor Detail |
|---|
public WeakIntrospector()
| Method Detail |
|---|
protected Map<String,ClassDescriptor> getClassDescriptorMap(Class type)
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.
public void reset()
reset in interface Introspector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||