|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.metaclass.introspector.MetaClassIntrospector
This class is responsible for loading and caching the ClassDescriptor
objects for corresponding java classes. It serves a similar purpose as the
java.beans.Introspector
class does for Java Beans.
Constructor Summary | |
MetaClassIntrospector()
|
Method Summary | |
static void |
clearCompleteCache()
Flush all of the Introspector's internal caches. |
static ClassDescriptor |
getClassDescriptor(java.lang.Class clazz)
|
static ClassDescriptor |
getClassDescriptor(java.lang.String classname,
java.lang.ClassLoader classLoader)
|
static void |
setAccessor(MetaClassAccessor accessor)
Set the MetaClassAccessor to use to locate ClassDescriptor objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MetaClassIntrospector()
Method Detail |
public static void clearCompleteCache()
Note that the caller must have been granted the
"metaclass.clearCompleteCache" RuntimePermission
or
else a security exception will be thrown.
java.lang.SecurityException
- if the caller does not have
permission to clear cachepublic static void setAccessor(MetaClassAccessor accessor)
Note that the caller must have been granted the
"metaclass.setAccessor" RuntimePermission
or else a
security exception will be thrown.
accessor
- the MetaClassAccessor
java.lang.SecurityException
- if the caller does not have permission to clear
cachepublic static ClassDescriptor getClassDescriptor(java.lang.Class clazz) throws MetaClassException
MetaClassException
MetaClassAccessor.getClassDescriptor(java.lang.String, java.lang.ClassLoader, org.codehaus.metaclass.introspector.MetaClassAccessor)
public static ClassDescriptor getClassDescriptor(java.lang.String classname, java.lang.ClassLoader classLoader) throws MetaClassException
MetaClassException
MetaClassAccessor.getClassDescriptor(java.lang.String, java.lang.ClassLoader, org.codehaus.metaclass.introspector.MetaClassAccessor)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |