merge dengshuang-feature

refactor: NetworkManager
This commit is contained in:
CaiHQ 2021-11-21 23:20:44 +08:00
parent be91e3c5b9
commit 4a15e3d904

View File

@ -2,6 +2,7 @@ package org.bdware.server.action;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.bdware.sc.util.JsonUtil;
import java.io.FileNotFoundException;
import java.io.RandomAccessFile;
@ -77,7 +78,6 @@ public class ActionExecutor<T, U> {
return;
}
Method[] methods = obj.getClass().getDeclaredMethods();
LOGGER.debug("zzz2" + obj.getClass());
for (Method method : methods) {
if (null != method.getAnnotation(Action.class)) {
if (method.getAnnotation(Action.class).alias().length == 0) {
@ -116,7 +116,7 @@ public class ActionExecutor<T, U> {
public void handle(String action, final U args, final T callback)
throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
// logger.info("[ActionExecutor] handle : "+action);
LOGGER.info("[ActionExecutor] handle : " + action + " ->" + JsonUtil.toJson(args));
if (null != action) {
if (staticData.containsKey(action)) {