mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-05-18 17:27:10 +00:00
doc[net]: 优化文档注释
This commit is contained in:
@@ -19,6 +19,8 @@ import com.zfoo.protocol.util.ReflectionUtils;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
/**
|
||||
* 动态代理被EventReceiver注解标注的方法,为了避免反射最终会用javassist字节码增强的方法去代理EventReceiverDefinition
|
||||
*
|
||||
* @author jaysunxiao
|
||||
* @version 3.0
|
||||
*/
|
||||
@@ -27,7 +29,7 @@ public class EventReceiverDefinition implements IEventReceiver {
|
||||
|
||||
private Object bean;
|
||||
|
||||
// 被ReceiveEvent注解的方法
|
||||
// 被EventReceiver注解标注的方法
|
||||
private Method method;
|
||||
|
||||
// 接收的参数Class
|
||||
|
||||
@@ -21,23 +21,25 @@ import com.zfoo.protocol.util.ReflectionUtils;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
/**
|
||||
* 动态代理被PacketReceiver注解标注的方法,为了避免反射最终会用javassist字节码增强的方法去代理PacketReceiverDefinition
|
||||
*
|
||||
* @author jaysunxiao
|
||||
* @version 3.0
|
||||
*/
|
||||
public class PacketReceiverDefinition implements IPacketReceiver {
|
||||
|
||||
/**
|
||||
* 一个facade的bean,这个bean里有void methodName(Session session,CM_Int cm)接受的方法
|
||||
* 一个controller的bean
|
||||
*/
|
||||
private Object bean;
|
||||
|
||||
/**
|
||||
* 接受的方法void methodName(Session session,CM_Int cm)
|
||||
* 被PacketReceiver注解标注的方法,接受的方法public void atTcpHelloRequest(Session session, TcpHelloRequest request)
|
||||
*/
|
||||
private Method method;
|
||||
|
||||
/**
|
||||
* 接收的包的Class类,如CM_Int
|
||||
* 接收的包的Class类,如TcpHelloRequest
|
||||
*/
|
||||
private Class<?> packetClazz;
|
||||
|
||||
|
||||
@@ -18,6 +18,8 @@ import com.zfoo.protocol.util.ReflectionUtils;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
/**
|
||||
* 动态代理被Scheduler注解标注的方法,为了避免反射最终会用javassist字节码增强的方法去代理ReflectScheduler
|
||||
*
|
||||
* @author jaysunxiao
|
||||
* @version 3.0
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user