Class MetaClassChangeReporter
- java.lang.Object
-
- org.grails.core.support.internal.tools.MetaClassChangeReporter
-
- All Implemented Interfaces:
groovy.lang.MetaClassRegistryChangeEventListener,java.util.EventListener
public class MetaClassChangeReporter extends java.lang.Object implements groovy.lang.MetaClassRegistryChangeEventListenerSimple class that reports when meta class changes and where (in what stack frame) those changes took place- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description MetaClassChangeReporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidupdateConstantMetaClass(groovy.lang.MetaClassRegistryChangeEvent cmcu)Called when the a constant MetaClass is updated.
-
-
-
Method Detail
-
updateConstantMetaClass
public void updateConstantMetaClass(groovy.lang.MetaClassRegistryChangeEvent cmcu)
Called when the a constant MetaClass is updated. If the new MetaClass is null, then the MetaClass is removed. Be careful, while this method is executed other updates may happen. If you want this method thread safe, you have to take care of that by yourself.- Specified by:
updateConstantMetaClassin interfacegroovy.lang.MetaClassRegistryChangeEventListener- Parameters:
cmcu- - the change event
-
-