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

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

public class ScriptInvokerFactory
extends java.lang.Object
implements InvokerFactory


Field Summary
protected  ComponentType ct
           
protected  ScriptImplementation implementation
           
protected  PropertyValueObjectFactory propertyFactory
           
protected  RuntimeComponent rc
           
protected  javax.script.ScriptEngine scriptEngine
           
protected  XMLHelper xmlHelper
           
 
Constructor Summary
ScriptInvokerFactory(RuntimeComponent rc, ComponentType ct, ScriptImplementation implementation, PropertyValueObjectFactory propertyFactory)
           
 
Method Summary
 Invoker createInvoker(Operation operation)
           
protected  java.lang.Object createReferenceProxy(java.lang.String name, RuntimeComponent component)
          TODO: RuntimeComponent should provide a method like this
protected  javax.script.ScriptEngine getScriptEngineByExtension(java.lang.String scriptExtn)
          Hack for now to work around a problem with the JRuby script engine
protected  void init(RuntimeComponent rc, ComponentType ct, ScriptImplementation implementation, PropertyValueObjectFactory propertyFactory)
           
protected  void pythonCachedir()
          If the Python home isn't set then let Tuscany suppress messages other than errors See TUSCANY-1950
 
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

rc

protected RuntimeComponent rc

ct

protected ComponentType ct

implementation

protected ScriptImplementation implementation

propertyFactory

protected PropertyValueObjectFactory propertyFactory
Constructor Detail

ScriptInvokerFactory

public ScriptInvokerFactory(RuntimeComponent rc,
                            ComponentType ct,
                            ScriptImplementation implementation,
                            PropertyValueObjectFactory propertyFactory)
Parameters:
rc -
ct -
implementation -
propertyFactory -
Method Detail

createInvoker

public Invoker createInvoker(Operation operation)
Specified by:
createInvoker in interface InvokerFactory

init

protected void init(RuntimeComponent rc,
                    ComponentType ct,
                    ScriptImplementation implementation,
                    PropertyValueObjectFactory propertyFactory)

createReferenceProxy

protected java.lang.Object createReferenceProxy(java.lang.String name,
                                                RuntimeComponent component)
TODO: RuntimeComponent should provide a method like this


getScriptEngineByExtension

protected javax.script.ScriptEngine getScriptEngineByExtension(java.lang.String scriptExtn)
Hack for now to work around a problem with the JRuby script engine


pythonCachedir

protected void pythonCachedir()
If the Python home isn't set then let Tuscany suppress messages other than errors See TUSCANY-1950