Package org.activiti.engine.impl.cfg
Class CommandExecutorImpl
- java.lang.Object
-
- org.activiti.engine.impl.cfg.CommandExecutorImpl
-
- All Implemented Interfaces:
CommandExecutor
public class CommandExecutorImpl extends java.lang.Object implements CommandExecutor
Command executor that passes commands to the first interceptor in the chain. If noCommandConfigis passed, the default configuration will be used.
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandConfigdefaultConfigprotected CommandInterceptorfirst
-
Constructor Summary
Constructors Constructor Description CommandExecutorImpl(CommandConfig defaultConfig, CommandInterceptor first)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Texecute(Command<T> command)Execute a command with the defaultCommandConfig.<T> Texecute(CommandConfig config, Command<T> command)Execute a command with the specifiedCommandConfig.CommandConfiggetDefaultConfig()CommandInterceptorgetFirst()voidsetFirst(CommandInterceptor commandInterceptor)
-
-
-
Field Detail
-
defaultConfig
protected CommandConfig defaultConfig
-
first
protected CommandInterceptor first
-
-
Constructor Detail
-
CommandExecutorImpl
public CommandExecutorImpl(CommandConfig defaultConfig, CommandInterceptor first)
-
-
Method Detail
-
getFirst
public CommandInterceptor getFirst()
-
setFirst
public void setFirst(CommandInterceptor commandInterceptor)
-
getDefaultConfig
public CommandConfig getDefaultConfig()
- Specified by:
getDefaultConfigin interfaceCommandExecutor- Returns:
- the default
CommandConfig, used if none is provided.
-
execute
public <T> T execute(Command<T> command)
Description copied from interface:CommandExecutorExecute a command with the defaultCommandConfig.- Specified by:
executein interfaceCommandExecutor
-
execute
public <T> T execute(CommandConfig config, Command<T> command)
Description copied from interface:CommandExecutorExecute a command with the specifiedCommandConfig.- Specified by:
executein interfaceCommandExecutor
-
-