
com.swak.core.handler.Handler Maven / Gradle / Ivy
The newest version!
package com.swak.core.handler;
public interface Handler {
/**
* 预处理
*
* @param command the command
* @param context the context
* @return the r
*/
default R nextHandle(I command,C context) {
return invoke(command,context);
}
/**
* 逻辑处理
*
* @param command the command
* @param context the context
* @return the r
*/
R invoke(I command,C context);
/**
* 兜底
*
* @param command the input
* @return o
*/
default R fallback(I command,C context) {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy