Package org.codehaus.groovy.transform
Class LogASTTransformation.AbstractLoggingStrategy
java.lang.Object
org.codehaus.groovy.transform.LogASTTransformation.AbstractLoggingStrategy
- All Implemented Interfaces:
LogASTTransformation.LoggingStrategy
- Direct Known Subclasses:
LogASTTransformation.AbstractLoggingStrategyV2
- Enclosing class:
- LogASTTransformation
public abstract static class LogASTTransformation.AbstractLoggingStrategy
extends Object
implements LogASTTransformation.LoggingStrategy
Base class for logging strategy implementations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final GroovyClassLoaderThe class loader for resolving logging implementation classes. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new logging strategy using the default class loader.protectedCreates a new logging strategy with the given class loader. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codehaus.groovy.transform.LogASTTransformation.LoggingStrategy
addLoggerFieldToClass, getCategoryName, isLoggingMethod, wrapLoggingMethodCall
-
Field Details
-
loader
The class loader for resolving logging implementation classes.
-
-
Constructor Details
-
AbstractLoggingStrategy
Creates a new logging strategy with the given class loader.- Parameters:
loader- the class loader for loading logging implementation classes
-
AbstractLoggingStrategy
protected AbstractLoggingStrategy()Creates a new logging strategy using the default class loader.
-
-
Method Details
-
classNode
Resolves a ClassNode for the given class name.- Parameters:
name- the fully qualified class name- Returns:
- the ClassNode for the specified class
-