org.mule.module.scripting.component
Class ScriptComponent
java.lang.Object
org.mule.component.AbstractComponent
org.mule.module.scripting.component.ScriptComponent
- All Implemented Interfaces:
- AnnotatedObject, Component, FlowConstructAware, MuleContextAware, Disposable, Initialisable, Lifecycle, Startable, Stoppable, MessageProcessor
public class ScriptComponent
- extends AbstractComponent
A Script service backed by a JSR-223 compliant script engine such as
Groovy, JavaScript, or Rhino.
Methods inherited from class org.mule.component.AbstractComponent |
createResultEvent, dispose, doDispose, doStart, doStop, fireComponentNotification, getAnnotation, getAnnotations, getFlowConstruct, getInterceptors, getName, getStatistics, initialise, process, release, setAnnotations, setFlowConstruct, setInterceptors, setMuleContext, start, stop, toString |
bindings
protected List<InterfaceBinding> bindings
ScriptComponent
public ScriptComponent()
doInitialise
protected void doInitialise()
throws InitialisationException
- Overrides:
doInitialise
in class AbstractComponent
- Throws:
InitialisationException
doInvoke
protected Object doInvoke(MuleEvent event)
throws Exception
- Specified by:
doInvoke
in class AbstractComponent
- Throws:
Exception
getScript
public Scriptable getScript()
setScript
public void setScript(Scriptable script)
getInterfaceBindings
public List<InterfaceBinding> getInterfaceBindings()
setInterfaceBindings
public void setInterfaceBindings(List<InterfaceBinding> bindingCollection)
configureComponentBindings
protected void configureComponentBindings()
throws MuleException
- Throws:
MuleException
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.