CTX
- The context type to use, can by any Component
, service
or POJO.RET
- The return type of the Command
's proceedings.E
- The exception type of the Command
's erroneous termination.@FunctionalInterface public interface Command<CTX,RET,E extends Exception>
Command
(Command
) represents an (atomic) operation applied
to a context returning a result encapsulated in an object (as of object
oriented programming). An Undoable
is a command which provides means
to undo its operation applied before. The Command
is created by a
client (e.g. the business logic) and passed to something like a command-bus
or command-processor for execution.Modifier and Type | Method and Description |
---|---|
RET |
execute(CTX aContext)
|
Copyright © 2017. All rights reserved.