org.apache.tuscany.sca.implementation.script
Class ScriptInvoker

java.lang.Object
  extended by org.apache.tuscany.sca.implementation.script.ScriptInvoker
All Implemented Interfaces:
Invoker

public class ScriptInvoker
extends java.lang.Object
implements Invoker

Perform the actual script invocation


Field Summary
protected  Operation operation
           
protected  javax.script.ScriptEngine scriptEngine
           
protected  XMLHelper xmlHelper
           
 
Constructor Summary
ScriptInvoker(javax.script.ScriptEngine scriptEngine, XMLHelper xmlHelper, Operation operation)
           
 
Method Summary
protected  java.lang.Object doInvoke(java.lang.Object[] objects, Operation op)
           
 Message invoke(Message msg)
          Process a synchronous wire
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scriptEngine

protected javax.script.ScriptEngine scriptEngine

xmlHelper

protected XMLHelper xmlHelper

operation

protected Operation operation
Constructor Detail

ScriptInvoker

public ScriptInvoker(javax.script.ScriptEngine scriptEngine,
                     XMLHelper xmlHelper,
                     Operation operation)
Method Detail

doInvoke

protected java.lang.Object doInvoke(java.lang.Object[] objects,
                                    Operation op)
                             throws javax.script.ScriptException
Throws:
javax.script.ScriptException

invoke

public Message invoke(Message msg)
Description copied from interface: Invoker
Process a synchronous wire

Specified by:
invoke in interface Invoker
Parameters:
msg - The request Message for the wire
Returns:
The response Message from the wire