Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mule.module.scripting.component
Class ScriptComponent

    java.lang.Object
      org.mule.component.AbstractComponent
          org.mule.module.scripting.component.ScriptComponent

All Implemented Interfaces:
  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.

Field Summary
`protected List<InterfaceBinding>` | `bindings`

Fields inherited from class org.mule.component.AbstractComponent
`flowConstruct, interceptorChain, interceptors, logger, muleContext, notificationHandler, statistics`

Fields inherited from interface org.mule.api.lifecycle.Initialisable
`PHASE_NAME`

Fields inherited from interface org.mule.api.lifecycle.Startable
`PHASE_NAME`

Fields inherited from interface org.mule.api.lifecycle.Stoppable
`PHASE_NAME`

Fields inherited from interface org.mule.api.lifecycle.Disposable
`PHASE_NAME`

Constructor Summary
`ScriptComponent()`

Method Summary
`protected void` | `configureComponentBindings()`
`protected void` | `doInitialise()`
`protected Object` | `doInvoke(MuleEvent event)`
`List<InterfaceBinding>` | `getInterfaceBindings()`
`Scriptable` | `getScript()`
`void` | `setInterfaceBindings(List<InterfaceBinding> bindingCollection)`
`void` | `setScript(Scriptable script)`

Methods inherited from class org.mule.component.AbstractComponent
`createResultEvent, dispose, doDispose, doStart, doStop, fireComponentNotification, getFlowConstruct, getInterceptors, getStatistics, initialise, process, release, setFlowConstruct, setInterceptors, setMuleContext, start, stop, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### bindings

    protected List<InterfaceBinding> bindings

Constructor Detail

### ScriptComponent

    public ScriptComponent()

Method Detail

### 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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.