Package groovy.lang
Class ExpandoMetaClassCreationHandle
java.lang.Object
groovy.lang.MetaClassRegistry.MetaClassCreationHandle
groovy.lang.ExpandoMetaClassCreationHandle
public class ExpandoMetaClassCreationHandle extends MetaClassRegistry.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 SummaryFields Modifier and Type Field Description static ExpandoMetaClassCreationHandleinstance
- 
Constructor SummaryConstructors Constructor Description ExpandoMetaClassCreationHandle()
- 
Method SummaryModifier and Type Method Description protected MetaClasscreateNormalMetaClass(java.lang.Class theClass, MetaClassRegistry registry)static voiddisable()static voidenable()Enables the ExpandoMetaClassCreationHandle with the registryExpandoMetaClassCreationHandle.enable();booleanhasModifiedMetaClass(ExpandoMetaClass emc)voidregisterModifiedMetaClass(ExpandoMetaClass emc)Registers a modified ExpandoMetaClass with the creation handleMethods inherited from class groovy.lang.MetaClassRegistry.MetaClassCreationHandlecreate, isDisableCustomMetaClassLookup, setDisableCustomMetaClassLookupMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Field Details- 
instance
 
- 
- 
Constructor Details- 
ExpandoMetaClassCreationHandlepublic ExpandoMetaClassCreationHandle()
 
- 
- 
Method Details- 
createNormalMetaClass- Overrides:
- createNormalMetaClassin class- MetaClassRegistry.MetaClassCreationHandle
 
- 
registerModifiedMetaClassRegisters a modified ExpandoMetaClass with the creation handle- Parameters:
- emc- The EMC
 
- 
hasModifiedMetaClass
- 
enablepublic static void enable()Enables the ExpandoMetaClassCreationHandle with the registry ExpandoMetaClassCreationHandle.enable();
- 
disablepublic static void disable()
 
-