public interface ClassInjector
When implemented allows additional properties to be injected into Grails classes at compile time (ie when they are loaded by the GroovyClassLoader).
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
performInjection(SourceUnit source, GeneratorContext context, ClassNode classNode) Handles injection of properties, methods etc. into a class. |
|
public void |
performInjection(SourceUnit source, ClassNode classNode) Handles injection of properties, methods etc. into a class. |
|
public void |
performInjectionOnAnnotatedClass(SourceUnit source, ClassNode classNode) Handles injection of properties, methods etc. into a class. |
|
public boolean |
shouldInject(URL url) Returns whether this injector should inject |
|
public boolean |
shouldInject(ClassNode classNode) Returns whether this injector should inject |
Handles injection of properties, methods etc. into a class.
source
- The source unitcontext
- The generator contextclassNode
- The ClassNode instanceHandles injection of properties, methods etc. into a class.
source
- The source unitclassNode
- The ClassNode instanceHandles injection of properties, methods etc. into a class.
source
- The source unitclassNode
- The ClassNode instanceReturns whether this injector should inject
url
- The URL of the source fileReturns whether this injector should inject
classNode
- The classNode of the Groovy source