|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.txbridge.ba.execute.ServiceExecutor
public abstract class ServiceExecutor
This is an abstract class that describes a basic ServiceExecutor. Service Executors are used for executing completion or compensation actions.
Field Summary | |
---|---|
protected static DataManagerProvider |
cmp
|
(package private) DataProvider |
dataProvider
|
(package private) Executable |
execution
|
private static org.apache.log4j.Logger |
log
|
protected TaskDescription |
taskDescription
|
Constructor Summary | |
---|---|
ServiceExecutor(TaskDescription taskDesc)
Main constructor. |
|
ServiceExecutor(TaskDescription taskDesc,
Executable execution,
DataProvider dp)
Constructor. |
Method Summary | |
---|---|
abstract void |
invoke(MethodDescription md,
ExecutionDataProvider edp)
This method invokes the completion or compensation task which is specified in the service description. |
void |
setExecutionType(Executable execution)
This method sets a new execution type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static org.apache.log4j.Logger log
protected static DataManagerProvider cmp
protected TaskDescription taskDescription
Executable execution
DataProvider dataProvider
Constructor Detail |
---|
ServiceExecutor(TaskDescription taskDesc)
taskDesc
- is the task's description.public ServiceExecutor(TaskDescription taskDesc, Executable execution, DataProvider dp)
taskDesc
- is the task's description.execution
- is the execution interface that should be used.dp
- is the data provider for arguments.Method Detail |
---|
public void setExecutionType(Executable execution)
execution
- is the execution type which should be set.public abstract void invoke(MethodDescription md, ExecutionDataProvider edp) throws ActionExecutionException
md
- represents the service description.edp
- represents the datamgmt data provider.
ActionExecutionException
- if it was not possible to execute datamgmt action.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |