public class Scriptable extends Object implements Initialisable, MuleContextAware
Modifier and Type | Field and Description |
---|---|
protected Log |
logger |
PHASE_NAME
Constructor and Description |
---|
Scriptable() |
Scriptable(MuleContext muleContext) |
protected transient Log logger
public Scriptable()
public Scriptable(MuleContext muleContext)
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic void populateDefaultBindings(Bindings bindings)
public void populateBindings(Bindings bindings, MuleMessage message)
public Object runScript(Bindings bindings) throws ScriptException
ScriptException
protected ScriptEngine createScriptEngineByName(String name)
protected ScriptEngine createScriptEngineByExtension(String ext)
protected String listAvailableEngines()
public String getScriptText()
public void setScriptText(String scriptText)
public String getScriptFile()
public void setScriptFile(String scriptFile)
public void setScriptEngineName(String scriptEngineName)
public String getScriptEngineName()
public Properties getProperties()
public void setProperties(Properties properties)
public ScriptEngine getScriptEngine()
protected void setScriptEngine(ScriptEngine scriptEngine)
protected CompiledScript getCompiledScript()
protected void setCompiledScript(CompiledScript compiledScript)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.