pro.jk.ejoker.commanding.AbstractCommandHandler Maven / Gradle / Ivy
package pro.jk.ejoker.commanding;
import java.util.concurrent.Future;
/**
* Java could not multi-implement ICommandHandler.
* 使用直接重载。
* 同时在此处分析Command对应的CommandHandler
* @author jiefzz
*
*/
public abstract class AbstractCommandHandler implements ICommandHandler {
@Override
public Future handleAsync(ICommandContext context, ICommand command) {
throw new CommandRuntimeException("Do you forget to implement the handler function to handle command which type is " +command.getClass().getName());
}
}