1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.dy.common.mw.protocol;
 
import java.lang.annotation.*;
 
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface AnnotationDriver {
    /**
     * 协议名称,各个协议名称不能有重复现象
     */
    String name() default "" ;
 
    /**
     * 协议版本号
     */
    short version() default -1 ;
 
    boolean enable() default true ;
}