public class CommandContextImpl extends Object implements CommandContext
This context holds the iterator over collection of interceptors, which will be triggered before the command will be passed to commandProcessor to execute.
| Modifier and Type | Method and Description |
|---|---|
String[] |
getArguments()
Returns the arguments of the command.
|
String |
getCommand()
Returns the command.
|
Object |
invoke()
For each remaining interceptor in list call it's intercept method.
|
String |
toString() |
public Object invoke() throws CommandInterceptorException
For each remaining interceptor in list call it's intercept method.
Watch if the following interceptor call's in it's CommandInterceptor.intercept(CommandContext) method body method
invoke() at least once. If not, this interceptor will raise
CommandInterceptorException.
invoke in interface CommandContextCommandInterceptorException - if the subsequent interceptor doesn't call invoke() in
it's CommandInterceptor.intercept(CommandContext) method body.public String getCommand()
getCommand in interface CommandContextpublic String[] getArguments()
getArguments in interface CommandContextCopyright © 2012 JBoss by Red Hat. All Rights Reserved.