Class LoggingTransformer

  • All Implemented Interfaces:
    grails.compiler.ast.AllArtefactClassInjector, grails.compiler.ast.ClassInjector

    public class LoggingTransformer
    extends java.lang.Object
    implements grails.compiler.ast.AllArtefactClassInjector
    Adds a log field to all artifacts.
    Since:
    2.0
    • Field Summary

      • Fields inherited from interface grails.compiler.ast.ClassInjector

        PRIVATE_STATIC_MODIFIER
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void performInjection​(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.ClassNode classNode)  
      void performInjection​(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.classgen.GeneratorContext context, org.codehaus.groovy.ast.ClassNode classNode)  
      void performInjectionOnAnnotatedClass​(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.ClassNode classNode)  
      boolean shouldInject​(java.net.URL url)  
      • Methods inherited from class java.lang.Object

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

      • LoggingTransformer

        public LoggingTransformer()
    • Method Detail

      • performInjection

        public void performInjection​(org.codehaus.groovy.control.SourceUnit source,
                                     org.codehaus.groovy.classgen.GeneratorContext context,
                                     org.codehaus.groovy.ast.ClassNode classNode)
        Specified by:
        performInjection in interface grails.compiler.ast.ClassInjector
      • performInjection

        public void performInjection​(org.codehaus.groovy.control.SourceUnit source,
                                     org.codehaus.groovy.ast.ClassNode classNode)
        Specified by:
        performInjection in interface grails.compiler.ast.ClassInjector
      • performInjectionOnAnnotatedClass

        public void performInjectionOnAnnotatedClass​(org.codehaus.groovy.control.SourceUnit source,
                                                     org.codehaus.groovy.ast.ClassNode classNode)
        Specified by:
        performInjectionOnAnnotatedClass in interface grails.compiler.ast.ClassInjector
      • shouldInject

        public boolean shouldInject​(java.net.URL url)
        Specified by:
        shouldInject in interface grails.compiler.ast.ClassInjector