org.apache.tuscany.sca.implementation.bpel.ode.provider
Class BPELInvoker

java.lang.Object
  extended by org.apache.tuscany.sca.implementation.bpel.ode.provider.BPELInvoker
All Implemented Interfaces:
Invoker

public class BPELInvoker
extends java.lang.Object
implements Invoker

Implements a target invoker for BPEL component implementations. The target invoker is responsible for dispatching invocations to the particular component implementation logic. In this example we are simply delegating the CRUD operation invocations to the corresponding methods on our fake resource manager.


Field Summary
protected  Log __log
           
 
Constructor Summary
BPELInvoker(RuntimeComponent component, RuntimeComponentService service, Operation operation, EmbeddedODEServer odeServer, TransactionManager txMgr)
           
 
Method Summary
 java.lang.Object doTheWork(java.lang.Object[] args)
           
 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

__log

protected final Log __log
Constructor Detail

BPELInvoker

public BPELInvoker(RuntimeComponent component,
                   RuntimeComponentService service,
                   Operation operation,
                   EmbeddedODEServer odeServer,
                   TransactionManager txMgr)
Method Detail

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

doTheWork

public java.lang.Object doTheWork(java.lang.Object[] args)
                           throws java.lang.reflect.InvocationTargetException
Throws:
java.lang.reflect.InvocationTargetException