public class GrailsAwareClassLoader extends GroovyClassLoader
A class loader that is aware of Groovy sources and injection operations.
| Constructor and description |
|---|
GrailsAwareClassLoader() |
GrailsAwareClassLoader(ClassLoader loader) |
GrailsAwareClassLoader(ClassLoader loader, CompilerConfiguration config) |
GrailsAwareClassLoader(ClassLoader parent, CompilerConfiguration config, boolean useConfigurationClasspath) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected CompilationUnit |
createCompilationUnit(CompilerConfiguration config, CodeSource source) |
|
public ClassNode |
getClassNode(String name)Get the ClassNode by the name |
|
protected GrailsAwareInjectionOperation |
getGrailsAwareInjectionOperation(CompilationUnit cu) |
|
public Map<?, ?> |
getMetaDataMap() |
|
public void |
setClassInjectors(ClassInjector[] classInjectors) |
|
public void |
setDisabledGlobalASTTransformations(boolean disabledGlobalASTTransformations)Disable the Global ASTTransformations |
|
public void |
setDisabledGrailsAwareInjectionOperation(boolean disabledGrailsAwareInjectionOperation)Disable the Grails AwareInjectionOperation |
|
public void |
setMetaDataMap(Map<?, ?> metaDataMap) |
Get the ClassNode by the name
name - the name of the ClassNodeDisable the Global ASTTransformations
disabledGlobalASTTransformations - whether to disable the global ASTTransformationsDisable the Grails AwareInjectionOperation
disabledGrailsAwareInjectionOperation - whether to disable the Grails AwareInjectionOperation