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 CommandExecutor
CommandConfig
, used if none is provided.public <T> T execute(Command<T> command)
CommandExecutor
CommandConfig
.execute
in interface CommandExecutor
public <T> T execute(CommandConfig config, Command<T> command)
CommandExecutor
CommandConfig
.execute
in interface CommandExecutor
Copyright © 2016 Alfresco. All rights reserved.