com.compilit.mediator.api.CommandHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cqers-mediator-api Show documentation
Show all versions of cqers-mediator-api Show documentation
The API for the corresponding CQ(E)RS Mediator Core library
The newest version!
package com.compilit.mediator.api;
/**
* A CommandHandler is a managed bean that is dedicated to handling a specific Command, represented by T.
*
* @param The specific Command implementation.
* @param The return type of the Command.
*/
public interface CommandHandler, R> extends RequestHandler {
R handle(T command);
}