Griffon 1.2.0

org.codehaus.griffon.compiler
[Java] Class LoggingInjectionOperation

java.lang.Object
  org.codehaus.groovy.control.CompilationUnit.PrimaryClassNodeOperation
      org.codehaus.griffon.compiler.LoggingInjectionOperation

public class LoggingInjectionOperation
extends CompilationUnit.PrimaryClassNodeOperation

Injects conditional logging on Griffon artifacts.

Based on the work done for LogASTTransformation and Slf4jLoggingStrategy by: Guillaume Laforge, Jochen Theodorou, Dinko Srkoc, Hamlet D'Arcy, Raffaele Cigni, Alberto Vilches Raton, Tomasz Bujok, Martin Ghados, Matthias Cullmann, Alberto Mijares.

Authors:
Andres Almiray


Nested Class Summary
interface LoggingInjectionOperation.LoggingStrategy

A LoggingStrategy defines how to wire a new logger instance into an existing class.

private static class LoggingInjectionOperation.Slf4jLoggingStrategy

 
Field Summary
private static Logger LOG

private static String LOG_VARIABLE_NAME

 
Constructor Summary
LoggingInjectionOperation()

 
Method Summary
void call(SourceUnit source, GeneratorContext context, ClassNode classNode)

 
Methods inherited from class CompilationUnit.PrimaryClassNodeOperation
call, needSortedInput, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

LOG

private static final Logger LOG


LOG_VARIABLE_NAME

private static final String LOG_VARIABLE_NAME


 
Constructor Detail

LoggingInjectionOperation

LoggingInjectionOperation()


 
Method Detail

call

public void call(SourceUnit source, GeneratorContext context, ClassNode classNode)


 

Groovy Documentation