public abstract class AbstractScriptBuilder extends java.lang.Object implements ScriptBuilder
Modifier and Type | Field and Description |
---|---|
protected java.lang.ClassLoader |
classLoader
The ClassLoader.
|
protected org.scripthelper.context.ScriptContext |
context
The script context.
|
protected org.scripthelper.exceptions.ScriptExceptionListener |
exceptionListener
The exception listener.
|
Constructor and Description |
---|
AbstractScriptBuilder() |
Modifier and Type | Method and Description |
---|---|
protected void |
addDefaultImports(org.scripthelper.model.ScriptWrapper<?> wrapper)
Add the default imports for a ScriptWrapper.
|
protected java.util.Set<java.lang.String> |
getDefaultImports()
Return the default imports a ScriptWrapper.
|
void |
setClassLoader(java.lang.ClassLoader classLoader)
Set the classLoader to use to load the script classes.
|
void |
setContext(org.scripthelper.context.ScriptContext context)
Set the script context.
|
void |
setScriptExceptionListener(org.scripthelper.exceptions.ScriptExceptionListener exceptionListener)
Set the script exception listener.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createScriptWrapper, setScriptable
protected org.scripthelper.context.ScriptContext context
protected org.scripthelper.exceptions.ScriptExceptionListener exceptionListener
protected java.lang.ClassLoader classLoader
public void setContext(org.scripthelper.context.ScriptContext context)
setContext
in interface ScriptBuilder
context
- the script contextpublic void setClassLoader(java.lang.ClassLoader classLoader)
setClassLoader
in interface ScriptBuilder
classLoader
- the classLoaderpublic void setScriptExceptionListener(org.scripthelper.exceptions.ScriptExceptionListener exceptionListener)
setScriptExceptionListener
in interface ScriptBuilder
exceptionListener
- the script exception listenerprotected java.util.Set<java.lang.String> getDefaultImports()
protected void addDefaultImports(org.scripthelper.model.ScriptWrapper<?> wrapper)
wrapper
- the ScriptWrapperCopyright © 2008-2020 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence