Class MetaClassChangeReporter

  • All Implemented Interfaces:
    groovy.lang.MetaClassRegistryChangeEventListener, java.util.EventListener

    public class MetaClassChangeReporter
    extends java.lang.Object
    implements groovy.lang.MetaClassRegistryChangeEventListener
    Simple class that reports when meta class changes and where (in what stack frame) those changes took place
    Since:
    2.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void updateConstantMetaClass​(groovy.lang.MetaClassRegistryChangeEvent cmcu)
      Called when the a constant MetaClass is updated.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MetaClassChangeReporter

        public MetaClassChangeReporter()
    • 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:
        updateConstantMetaClass in interface groovy.lang.MetaClassRegistryChangeEventListener
        Parameters:
        cmcu - - the change event