public class DefaultGrailsDomainClassInjector extends java.lang.Object implements GrailsDomainClassInjector
PRIVATE_STATIC_MODIFIER
Constructor and Description |
---|
DefaultGrailsDomainClassInjector() |
Modifier and Type | Method and Description |
---|---|
void |
performInjection(SourceUnit source,
ClassNode classNode)
Handles injection of properties, methods etc.
|
void |
performInjection(SourceUnit source,
GeneratorContext context,
ClassNode classNode)
Handles injection of properties, methods etc.
|
void |
performInjectionOnAnnotatedEntity(ClassNode classNode)
Doesn't check with the specified ClassNode is a valid entity and assumes it
is and proceeds with the injection regardless.
|
boolean |
shouldInject(java.net.URL url)
Returns whether this injector should inject
|
public void performInjection(SourceUnit source, GeneratorContext context, ClassNode classNode)
ClassInjector
performInjection
in interface ClassInjector
source
- The source unitcontext
- The generator contextclassNode
- The ClassNode instancepublic void performInjectionOnAnnotatedEntity(ClassNode classNode)
GrailsDomainClassInjector
performInjectionOnAnnotatedEntity
in interface GrailsDomainClassInjector
classNode
- The ClassNodepublic boolean shouldInject(java.net.URL url)
ClassInjector
shouldInject
in interface ClassInjector
url
- The URL of the source filepublic void performInjection(SourceUnit source, ClassNode classNode)
ClassInjector
performInjection
in interface ClassInjector
source
- The source unitclassNode
- The ClassNode instance