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()
Modifiers | Name | Description |
---|---|---|
static ExpandoMetaClassCreationHandle |
instance |
Type | Name and description |
---|---|
protected MetaClass |
createNormalMetaClass(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 |
Enables the ExpandoMetaClassCreationHandle with the registry
ExpandoMetaClassCreationHandle.enable();
Registers a modified ExpandoMetaClass with the creation handle
emc
- The EMC