org.jbpm.pvm.internal.cmd
Interface CommandService

All Known Implementing Classes:
AsyncCommandService, AuthorizationInterceptor, DefaultCommandService, EnvironmentInterceptor, Interceptor, JtaRetryInterceptor, JtaTransactionInterceptor, RetryInterceptor, SerializeInterceptor, SkipInterceptor, SpringTransactionInterceptor, StandardTransactionInterceptor

public interface CommandService

abstract extensible session facade. Developers can use this directly or extend one of the implementations with custom methods. Developers should be encouraged to use this interface as it will be kept more stable then direct usage of the API (which is still allowed). All the method implementations should be based on commands. Each of the method implementations will have a environment block. Then the command is executed and the environment is passed into the command.


Field Summary
static java.lang.String NAME_NEW_TX_REQUIRED_COMMAND_SERVICE
           
static java.lang.String NAME_TX_REQUIRED_COMMAND_SERVICE
           
 
Method Summary
<T> T
execute(Command<T> command)
           
 

Field Detail

NAME_TX_REQUIRED_COMMAND_SERVICE

static final java.lang.String NAME_TX_REQUIRED_COMMAND_SERVICE
See Also:
Constant Field Values

NAME_NEW_TX_REQUIRED_COMMAND_SERVICE

static final java.lang.String NAME_NEW_TX_REQUIRED_COMMAND_SERVICE
See Also:
Constant Field Values
Method Detail

execute

<T> T execute(Command<T> command)
Throws:
JbpmException - if command throws an exception.


Copyright © 2010 JBoss Community. All Rights Reserved.