Package org.mwolff.command
Interface Command<T>
-
- All Known Subinterfaces:
ChainCommand<T>
,CommandContainer<T>
,ProcessCommand<T>
- All Known Implementing Classes:
AbstractDefaultChainCommand
,AbstractDefaultCommand
,AbstractDefaultProcessCommand
,ActionListToCommandContainerCommand
,DefaultCommandContainer
,DefaultEndCommand
,InjectionChainBuilder
,InputSourceReaderCommand
,SaxParserCommand
,TestCommand
,XMLChainBuilder
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Command<T>
Command interface for the command framework. Commands may act with generic command context. A context actually is a parameter object which passes information along the whole chain.- Author:
- Manfred Wolff
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CommandTransition
executeCommand(T parameterObject)
Executes the command.
-
-
-
Method Detail
-
executeCommand
CommandTransition executeCommand(T parameterObject)
Executes the command. The command can have the result SUCCESS if everything is fine or FAILURE if an error occurred.- Parameters:
parameterObject
- The parameter object to pass.- Returns:
- FAILURE if something went wrong, SUCCESS otherwise.
-
-