Package ch.grengine.code.groovy
Class DefaultGroovyCompiler.Builder
java.lang.Object
ch.grengine.code.groovy.DefaultGroovyCompiler.Builder
- Enclosing class:
- DefaultGroovyCompiler
Builder for instances of
DefaultGroovyCompiler.- Since:
- 1.0
- Author:
- Alain Stalder, Made in Switzerland.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds a new instance ofDefaultGroovyCompiler.gets the compiler configuration.gets the parent class loader.setCompilerConfiguration(CompilerConfiguration compilerConfiguration) sets the compiler configuration, default is a new instance ofCompilerConfigurationwith default settings.setParent(ClassLoader parent) sets the parent class loader, default is the context class loader of the current thread.
-
Constructor Details
-
Builder
public Builder()constructor.- Since:
- 1.0
-
-
Method Details
-
setParent
sets the parent class loader, default is the context class loader of the current thread.- Parameters:
parent- parent class loader- Returns:
- this, for chaining calls
- Since:
- 1.0
-
setCompilerConfiguration
public DefaultGroovyCompiler.Builder setCompilerConfiguration(CompilerConfiguration compilerConfiguration) sets the compiler configuration, default is a new instance ofCompilerConfigurationwith default settings.- Parameters:
compilerConfiguration- compiler configuration- Returns:
- this, for chaining calls
- Since:
- 1.0
-
getParent
gets the parent class loader.- Returns:
- parent class loader
- Since:
- 1.0
-
getCompilerConfiguration
gets the compiler configuration.- Returns:
- compiler configuration
- Since:
- 1.0
-
build
builds a new instance ofDefaultGroovyCompiler.- Returns:
- new instance
- Since:
- 1.0
-