mirror of
https://gitee.com/BDWare/front-base
synced 2025-01-10 01:44:01 +00:00
merge
This commit is contained in:
parent
f7d041f144
commit
77b2340a6e
@ -116,7 +116,8 @@ public class ActionExecutor<T, U> {
|
|||||||
|
|
||||||
public void handle(String action, final U args, final T callback)
|
public void handle(String action, final U args, final T callback)
|
||||||
throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
|
throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
|
||||||
// LOGGER.info("[ActionExecutor] handle : " + action + " ->" + JsonUtil.toJson(args));
|
LOGGER.info("handling " + action + "...");
|
||||||
|
LOGGER.debug("handle : " + action + " ->" + JsonUtil.toJson(args));
|
||||||
|
|
||||||
if (null != action) {
|
if (null != action) {
|
||||||
if (staticData.containsKey(action)) {
|
if (staticData.containsKey(action)) {
|
||||||
@ -128,7 +129,6 @@ public class ActionExecutor<T, U> {
|
|||||||
// logger.debug("[ActionExecutor] handle : ");
|
// logger.debug("[ActionExecutor] handle : ");
|
||||||
if (!handlers.containsKey(action)) {
|
if (!handlers.containsKey(action)) {
|
||||||
LOGGER.debug("unsupported action " + action + "->" + JsonUtil.toJson(args));
|
LOGGER.debug("unsupported action " + action + "->" + JsonUtil.toJson(args));
|
||||||
|
|
||||||
throw new IllegalArgumentException("unsupported action " + action);
|
throw new IllegalArgumentException("unsupported action " + action);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user