• 大小: 11.53M
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2023-06-13
  • 语言: 其他
  • 标签: 其他  

资源简介

nettydemo.zip

资源截图

代码片段和文件信息

package com.crazyMakerCircle.opClient;

import com.crazymakercircle.chat.operation.AbstractOperation;
import com.oim.common.app.controller.ControllerFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

public abstract class  ClientbaseOperation extends AbstractOperation
{
private static final Logger LOGGER = LoggerFactory.getLogger(ClientbaseOperation.class);
private static ControllerFactory controllerFactory;


public static void setControllerFactory(ControllerFactory factory)
{
controllerFactory = factory;
}





public static object doAction(String classCode String methodCode object data)
{
object controller = controllerFactory.getController(classCode);
Method method = controllerFactory.getMethod(classCode methodCode);
if ((null != controller && null != method))
{
object result = null;
try
{
result = method.invoke(controller data);
} catch (IllegalAccessException e)
{
e.printStackTrace();
} catch (InvocationTargetException e)
{
e.printStackTrace();
}
if (null != result)
{
return  result;
}else {
LOGGER.warn(“result is null“);
}
}

return null;
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        8696  2018-11-12 23:18  .gitignore
     目录           0  2018-11-17 11:13  ChatBox\
     文件        4130  2018-11-17 11:13  ChatBox\ChatBox.iml
     文件        2410  2018-11-14 20:16  ChatBox\pom.xml
     目录           0  2018-11-12 22:27  ChatBox\src\
     目录           0  2018-11-12 22:27  ChatBox\src\main\
     目录           0  2018-11-13 21:06  ChatBox\src\main\java\
     目录           0  2018-11-14 22:55  ChatBox\src\main\java\com\
     目录           0  2018-11-14 22:57  ChatBox\src\main\java\com\crazyMakerCircle\
     目录           0  2018-11-17 09:48  ChatBox\src\main\java\com\crazyMakerCircle\opClient\
     文件        1302  2018-11-17 09:48  ChatBox\src\main\java\com\crazyMakerCircle\opClient\ClientbaseOperation.java
     目录           0  2018-11-17 09:48  ChatBox\src\main\java\com\crazyMakerCircle\opClient\impl\
     文件        1347  2018-11-17 09:48  ChatBox\src\main\java\com\crazyMakerCircle\opClient\impl\ClientChatOperation.java
     目录           0  2018-11-14 19:57  ChatBox\src\main\java\com\oim\
     目录           0  2018-11-14 21:45  ChatBox\src\main\java\com\oim\app\
     文件        8562  2018-11-14 21:45  ChatBox\src\main\java\com\oim\app\AppContext.java
     文件        4072  2018-11-14 19:27  ChatBox\src\main\java\com\oim\app\AppStartup.java
     文件        3860  2018-11-14 19:27  ChatBox\src\main\java\com\oim\app\UIBox.java
     目录           0  2018-11-14 19:28  ChatBox\src\main\java\com\oim\app\initialize\
     文件         254  2018-11-14 19:28  ChatBox\src\main\java\com\oim\app\initialize\AppInitializer.java
     目录           0  2018-11-13 21:08  ChatBox\src\main\java\com\oim\business\
     目录           0  2018-11-14 19:28  ChatBox\src\main\java\com\oim\business\constant\
     文件         653  2018-11-14 19:28  ChatBox\src\main\java\com\oim\business\constant\UserConstant.java
     文件         334  2018-11-14 19:28  ChatBox\src\main\java\com\oim\business\constant\VideoConstant.java
     目录           0  2018-11-14 21:26  ChatBox\src\main\java\com\oim\business\controller\
     文件         719  2018-11-14 21:26  ChatBox\src\main\java\com\oim\business\controller\AppController.java
     文件        1939  2018-11-14 21:26  ChatBox\src\main\java\com\oim\business\controller\ChatController.java
     文件        2073  2018-11-14 21:26  ChatBox\src\main\java\com\oim\business\controller\GroupController.java
     文件        2171  2018-11-14 21:26  ChatBox\src\main\java\com\oim\business\controller\PersonalController.java
     文件        2174  2018-11-14 21:26  ChatBox\src\main\java\com\oim\business\controller\UserController.java
     文件        3157  2018-11-14 21:26  ChatBox\src\main\java\com\oim\business\controller\VideoController.java
............此处省略1549个文件信息

评论

共有 条评论