org.jboss.txbridge.ba.execute
Class LocalExecution

java.lang.Object
  extended by org.jboss.txbridge.ba.execute.LocalExecution
All Implemented Interfaces:
Executable

public class LocalExecution
extends java.lang.Object
implements Executable

This class provides implementation of the local execution. Local execution is used on POJOs.

Version:
0.1
Author:
Maciej P. Machulak (mmachulak@redhat.com)

Field Summary
private static org.apache.log4j.Logger log
           
 
Constructor Summary
LocalExecution()
           
 
Method Summary
 void invokeService(TaskDescription taskDesc, MethodDescription md, java.lang.Object[] arguments, java.lang.Class[] argumentTypes)
          This method invokes a service that is described by the service description with given arguments and argument types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.log4j.Logger log
Constructor Detail

LocalExecution

public LocalExecution()
Method Detail

invokeService

public void invokeService(TaskDescription taskDesc,
                          MethodDescription md,
                          java.lang.Object[] arguments,
                          java.lang.Class[] argumentTypes)
                   throws ActionExecutionException
This method invokes a service that is described by the service description with given arguments and argument types.

Specified by:
invokeService in interface Executable
Parameters:
taskDesc - describes the task (needed to inject the proper participant).
md - describes the service.
arguments - is the list of arguments.
argumentTypes - is the list of argument types.
Throws:
ActionExecutionException - if invoking service was not successful.