|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.lang.MetaClassRegistry.MetaClassCreationHandle groovy.lang.ExpandoMetaClassCreationHandle
public class ExpandoMetaClassCreationHandle extends MetaClassCreationHandle
A handle for the MetaClassRegistry that changes all classes loaded into the Grails VM to use ExpandoMetaClass instances
The handle should be registered with the Groovy runtime before Groovy loads, for example
in your main method.
GroovySystem.metaClassRegistry.metaClassCreationHandle = new ExpandoMetaClassCreationHandle()
Field Summary | |
---|---|
static ExpandoMetaClassCreationHandle |
instance
|
Method Summary | |
---|---|
protected MetaClass
|
createNormalMetaClass(java.lang.Class theClass, MetaClassRegistry registry)
|
static void
|
disable()
|
static void
|
enable()
|
boolean
|
hasModifiedMetaClass(ExpandoMetaClass emc)
|
void
|
registerModifiedMetaClass(ExpandoMetaClass emc)
Registers a modified ExpandoMetaClass with the creation handle |
Field Detail |
---|
public static final ExpandoMetaClassCreationHandle instance
Method Detail |
---|
protected MetaClass createNormalMetaClass(java.lang.Class theClass, MetaClassRegistry registry)
public static void disable()
public static void enable()
Enables the ExpandoMetaClassCreationHandle with the registry
ExpandoMetaClassCreationHandle.enable();
public boolean hasModifiedMetaClass(ExpandoMetaClass emc)
public void registerModifiedMetaClass(ExpandoMetaClass emc)
emc
- The EMC
Groovy Documentation