Package groovy.lang
Class ExpandoMetaClassCreationHandle
java.lang.Object
groovy.lang.MetaClassRegistry.MetaClassCreationHandle
groovy.lang.ExpandoMetaClassCreationHandle
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
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected MetaClasscreateNormalMetaClass(Class theClass, MetaClassRegistry registry) static voiddisable()static voidenable()Enables the ExpandoMetaClassCreationHandle with the registryExpandoMetaClassCreationHandle.enable();booleanvoidRegisters a modified ExpandoMetaClass with the creation handleMethods inherited from class groovy.lang.MetaClassRegistry.MetaClassCreationHandlecreate, isDisableCustomMetaClassLookup, setDisableCustomMetaClassLookup
- 
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()
 
-