public static class DefaultTopCodeCache.Builder extends Object
DefaultTopCodeCache
.Constructor and Description |
---|
Builder(ClassLoader parent)
constructor from parent class loader.
|
Modifier and Type | Method and Description |
---|---|
DefaultTopCodeCache |
build()
builds a new instance of
DefaultGroovyCompiler . |
CompilerFactory |
getCompilerFactory()
gets the compiler factory.
|
ClassLoader |
getParent()
gets the parent class loader.
|
DefaultTopCodeCache.Builder |
setCompilerFactory(CompilerFactory compilerFactory)
sets the compiler factory,
default is a new instance
DefaultGroovyCompilerFactory with default settings |
public Builder(ClassLoader parent)
parent
- parent class loaderpublic DefaultTopCodeCache.Builder setCompilerFactory(CompilerFactory compilerFactory)
DefaultGroovyCompilerFactory
with default settingscompilerFactory
- compiler factorypublic ClassLoader getParent()
public CompilerFactory getCompilerFactory()
public DefaultTopCodeCache build()
DefaultGroovyCompiler
.