CommandHandlingClass

public interface CommandHandlingClass<R extends MessageClass<?>, H extends CommandAcceptingMethod<? extends Object, R>>

A common interface for classes that handle commands.

Parameters

<R>

the type of message classes produced from the command handling

<H>

the type of methods which perform command handling

Inheritors

Functions

Link copied to clipboard
public abstract ImmutableSet<R> commandOutput()
Obtains classes of all messages produced as a result of command handling.
Link copied to clipboard
public abstract ImmutableSet<CommandClass> commands()
Obtains classes of commands handled by the class.
Link copied to clipboard
public abstract H handlerOf(CommandClass commandClass)
Obtains the handler method for the passed command class.
Link copied to clipboard
public abstract ImmutableSet<EventClass> rejections()
Obtains classes of rejections that command handling methods of this class throw, or empty set if no rejections are thrown.