S
- the Script interfacepublic interface ScriptLanguageFactory<S>
Modifier and Type | Method and Description |
---|---|
org.scripthelper.model.ScriptWrapper<S> |
createScript(short mime)
Create a script wrapper.
|
org.scripthelper.model.ScriptWrapper<S> |
createScriptWrapper(short scriptType,
org.scripthelper.js.JSScriptable scriptable)
Create a script wrapper.
|
org.scripthelper.context.ScriptContext |
getScriptContext()
Return the script context.
|
org.scripthelper.exceptions.ScriptExceptionListener |
getScriptExceptionListener()
Return the script exception listener.
|
java.lang.Class<S> |
getScriptInterface()
Return the class of the associated script interface.
|
org.scripthelper.context.ScriptLogger |
getScriptLogger()
Return the script logger.
|
boolean |
isScriptSupported(short scriptType)
Return true if the MIME type is supported.
|
void |
setClassLoader(java.lang.ClassLoader loader)
Set the ClassLoader
|
void |
setScriptContext(org.scripthelper.context.ScriptContext context)
Set the script context.
|
void |
setScriptExceptionListener(org.scripthelper.exceptions.ScriptExceptionListener exceptionListener)
Set the script exception listener.
|
void |
setScriptLogger(org.scripthelper.context.ScriptLogger scriptLogger)
Set the script logger.
|
void setClassLoader(java.lang.ClassLoader loader)
loader
- the ClassLoadervoid setScriptExceptionListener(org.scripthelper.exceptions.ScriptExceptionListener exceptionListener)
exceptionListener
- the script exception listenerorg.scripthelper.exceptions.ScriptExceptionListener getScriptExceptionListener()
void setScriptLogger(org.scripthelper.context.ScriptLogger scriptLogger)
scriptLogger
- the script loggerorg.scripthelper.context.ScriptLogger getScriptLogger()
void setScriptContext(org.scripthelper.context.ScriptContext context)
context
- the script contextorg.scripthelper.context.ScriptContext getScriptContext()
java.lang.Class<S> getScriptInterface()
org.scripthelper.model.ScriptWrapper<S> createScript(short mime)
mime
- the ScriptWrapper MIMEorg.scripthelper.model.ScriptWrapper<S> createScriptWrapper(short scriptType, org.scripthelper.js.JSScriptable scriptable)
scriptType
- the script typescriptable
- the JSScriptable (only used for Javascript scripts)boolean isScriptSupported(short scriptType)
scriptType
- the script typeCopyright © 2008-2020 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence