org.mule.module.scripting.component
Class ScriptComponent
java.lang.Object
org.mule.component.AbstractComponent
org.mule.module.scripting.component.ScriptComponent
- All Implemented Interfaces:
- Component, MuleContextAware, Interceptor, Disposable, Initialisable, Lifecycle, Startable, Stoppable
public class ScriptComponent
- extends AbstractComponent
A Script service backed by a JSR-223 compliant script engine such as
Groovy, JavaScript, or Rhino.
Fields inherited from class org.mule.component.AbstractComponent |
disposed, disposing, initialised, interceptors, logger, muleContext, notificationHandler, service, started, statistics, stopping |
Methods inherited from class org.mule.component.AbstractComponent |
checkDisposed, createResultMessage, dispose, doDispose, doStart, doStop, fireComponentNotification, getInterceptors, getService, getStatistics, initialise, intercept, invoke, release, setInterceptors, setMuleContext, setService, start, stop, toString |
bindingCollection
protected BindingCollection bindingCollection
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)
getBindingCollection
public BindingCollection getBindingCollection()
setBindingCollection
public void setBindingCollection(BindingCollection bindingCollection)
configureComponentBindings
protected void configureComponentBindings()
throws MuleException
- Throws:
MuleException
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.