public class CommandExecutorImpl extends Object implements CommandExecutor
CommandConfig is passed, the default configuration will be used.| Constructor and Description |
|---|
CommandExecutorImpl(CommandConfig defaultConfig,
CommandInterceptor first) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
execute(Command<T> command)
Execute a command with the default
CommandConfig. |
<T> T |
execute(CommandConfig config,
Command<T> command)
Execute a command with the specified
CommandConfig. |
CommandConfig |
getDefaultConfig() |
CommandInterceptor |
getFirst() |
public CommandExecutorImpl(CommandConfig defaultConfig, CommandInterceptor first)
public CommandInterceptor getFirst()
public CommandConfig getDefaultConfig()
getDefaultConfig in interface CommandExecutorCommandConfig, used if none is provided.public <T> T execute(Command<T> command)
CommandExecutorCommandConfig.execute in interface CommandExecutorpublic <T> T execute(CommandConfig config, Command<T> command)
CommandExecutorCommandConfig.execute in interface CommandExecutorCopyright © 2016 Alfresco. All rights reserved.