|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl
public class MetaClassRegistryImpl extends java.lang.Object
A registry of MetaClass instances which caches introspection & reflection information and allows methods to be dynamically added to existing classes at runtime
Field Summary | |
---|---|
static int |
DONT_LOAD_DEFAULT
|
static int |
LOAD_DEFAULT
|
static java.lang.String |
MODULE_META_INF_FILE
|
Constructor Summary | |
MetaClassRegistryImpl()
|
|
MetaClassRegistryImpl(int loadDefault)
|
|
MetaClassRegistryImpl(boolean useAccessible)
@param useAccessible defines whether or not the java.lang.reflect.AccessibleObject#setAccessible(boolean) method will be called to enable access to all methods when using reflection |
|
MetaClassRegistryImpl(int loadDefault, boolean useAccessible)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public static final int DONT_LOAD_DEFAULT
public static final int LOAD_DEFAULT
public static final java.lang.String MODULE_META_INF_FILE
Constructor Detail |
---|
public MetaClassRegistryImpl()
public MetaClassRegistryImpl(int loadDefault)
public MetaClassRegistryImpl(boolean useAccessible)
useAccessible
- defines whether or not the java.lang.reflect.AccessibleObject#setAccessible(boolean)
method will be called to enable access to all methods when using reflection
public MetaClassRegistryImpl(int loadDefault, boolean useAccessible)
Method Detail |
---|
public void addMetaClassRegistryChangeEventListener(MetaClassRegistryChangeEventListener listener)
public void addNonRemovableMetaClassRegistryChangeEventListener(MetaClassRegistryChangeEventListener listener)
listener
- the listener
protected void fireConstantMetaClassUpdate(java.lang.Object obj, java.lang.Class c, MetaClass oldMC, MetaClass newMc)
public static MetaClassRegistry getInstance(int includeExtension)
public FastArray getInstanceMethods()
public final MetaClass getMetaClass(java.lang.Class theClass)
public MetaClass getMetaClass(java.lang.Object obj)
public MetaClassCreationHandle getMetaClassCreationHandler()
public MetaClassRegistryChangeEventListener[] getMetaClassRegistryChangeEventListeners()
public ExtensionModuleRegistry getModuleRegistry()
public FastArray getStaticMethods()
public java.util.Iterator iterator()
public void registerExtensionModuleFromProperties(java.util.Properties properties, java.lang.ClassLoader classLoader, java.util.Map map)
public void removeMetaClass(java.lang.Class theClass)
public void removeMetaClassRegistryChangeEventListener(MetaClassRegistryChangeEventListener listener)
public void setMetaClass(java.lang.Class theClass, MetaClass theMetaClass)
public void setMetaClass(java.lang.Object obj, MetaClass theMetaClass)
public void setMetaClassCreationHandle(MetaClassCreationHandle handle)
public boolean useAccessible()
Groovy Documentation