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 fromprotected void populatePropertyBindings(Bindings bindings)
@Deprecated protected void populatePropertyBindings(Bindings bindings, MuleMessage message)
ExpressionManager.parse(String, MuleMessage)
internally. Use
populatePropertyBindings(Bindings, MuleEvent)
instead.protected void populatePropertyBindings(Bindings bindings, MuleEvent event)
public void populateDefaultBindings(Bindings bindings)
@Deprecated public void populateBindings(Bindings bindings, MuleMessage message)
ExpressionManager.parse(String, MuleMessage)
internally. Use
populateBindings(Bindings, MuleEvent)
instead.protected void populateMessageBindings(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–2016 MuleSoft, Inc.. All rights reserved.