CommandHandlerClass

Provides message handling information on a command handler class.

Parameters

<C>

the type of command handlers

Functions

Link copied to clipboard
Obtains command handler class for the passed raw class.

Inherited functions

Link copied to clipboard
public ImmutableSet<R> commandOutput()
Obtains classes of all messages produced as a result of command handling.
Link copied to clipboard
public ImmutableSet<CommandClass> commands()
Obtains classes of commands handled by the class.
Link copied to clipboard
protected static ModelClass<T> get<T, M extends ModelClass<T>>(Class<T> rawClass, Class<M> requestedModelClass, Supplier<ModelClass<T>> supplier)
Obtains the model class for the passed raw class.
Link copied to clipboard
public H handlerOf(CommandClass commandClass)
Obtains the handler method for the passed command class.
Link copied to clipboard
public ImmutableSet<EventClass> rejections()
Obtains classes of rejections that command handling methods of this class throw, or empty set if no rejections are thrown.