See: Description
Interface | Description |
---|---|
Command<CTX,RET,E extends Exception> | |
Undoable<CTX,RET,E extends Exception> |
Command
(respectively an
Undoable
) represents an (atomic) operation
applied to a context encapsulated in an object (as of object oriented
programming). Usually a command (Undoable
) also
provides means to undo its operation applied before. The
Command
(Undoable
)
is created by a client (e.g. the business logic) and passed e.g. to a command
bus for execution (or executed "manually" at required / desired time).
(a command bus implementation you can find in the "refcodes-jobbus" artifact,
see org.refcodes.jobbus.JobBus
).
CLIENT:
The client may be the business logic creating a
Undoable
(job) to be executed.
CONTEXT:
The context can be a service, a service-bus (providing a handful of
services), a component or a plain POJO (this depends on your requirements and
your implementation).Copyright © 2015. All rights reserved.