Top Description Fields Constructors Methods
groovy.lang

public Class ExpandoMetaClassCreationHandle

extends MetaClassCreationHandle
Class Inheritance
Imports
groovy.lang.MetaClassRegistry.MetaClassCreationHandle, org.codehaus.groovy.reflection.ClassInfo

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()

Since
1.5
See Also
groovy.lang.MetaClassRegistry, groovy.lang.MetaClassRegistry.MetaClassCreationHandle, org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl#setMetaClassCreationHandle(groovy.lang.MetaClassRegistry.MetaClassCreationHandle)

Field Summary

Modifier and TypeField and Description
public static final ExpandoMetaClassCreationHandle

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected MetaClass
public static void
public static void
enable()

Enables the ExpandoMetaClassCreationHandle with the registry ExpandoMetaClassCreationHandle.enable();

public boolean
public void
registerModifiedMetaClass(ExpandoMetaClass
The EMC
emc
)

Registers a modified ExpandoMetaClass with the creation handle

Inherited from groovy.lang.MetaClassRegistry.MetaClassCreationHandle:
createisDisableCustomMetaClassLookupsetDisableCustomMetaClassLookup

Field Detail

instanceback to summary
public static final ExpandoMetaClassCreationHandle instance

Constructor Detail

ExpandoMetaClassCreationHandleback to summary
public ExpandoMetaClassCreationHandle()

Method Detail

createNormalMetaClassback to summary
protected MetaClass createNormalMetaClass(Class<T> theClass, MetaClassRegistry registry)

Overrides groovy.lang.MetaClassRegistry.MetaClassCreationHandle.createNormalMetaClass.

disableback to summary
public static void disable()
enableback to summary
public static void enable()

Enables the ExpandoMetaClassCreationHandle with the registry ExpandoMetaClassCreationHandle.enable();

hasModifiedMetaClassback to summary
public boolean hasModifiedMetaClass(ExpandoMetaClass emc)
registerModifiedMetaClassback to summary
public void registerModifiedMetaClass(ExpandoMetaClass emc)

Registers a modified ExpandoMetaClass with the creation handle

Parameters
emc:ExpandoMetaClass

The EMC