|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 | |
---|---|
ExpandoMetaClassCreationHandle |
instance
|
Map |
modifiedExpandos
|
Constructor Summary | |
ExpandoMetaClassCreationHandle()
|
Method Summary | |
---|---|
MetaClass |
createNormalMetaClass(Class theClass, MetaClassRegistry registry)
|
static void |
disable()
|
static void |
enable()
Enables the ExpandoMetaClassCreationHandle with the registry
|
boolean |
hasModifiedMetaClass(ExpandoMetaClass emc)
|
void |
populateSupersFromInterfaces(Set modifiedSupers, def interfaces)
|
void |
registerModifiedMetaClass(ExpandoMetaClass emc)
Registers a modified ExpandoMetaClass with the creation handle |
Set |
retrieveModifiedSuperExpandos(ExpandoMetaClass child)
|
Constructor Detail |
---|
ExpandoMetaClassCreationHandle()
Method Detail |
---|
MetaClass createNormalMetaClass(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)
void populateSupersFromInterfaces(Set modifiedSupers, def interfaces)
public void registerModifiedMetaClass(ExpandoMetaClass emc)
Set retrieveModifiedSuperExpandos(ExpandoMetaClass child)