田源
2025-01-16 a13255b4129ee8a7a7b7e1ecd8e02dd2c78f7c17
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.vci.starter.web.annotation;
 
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
 
/**
 * 服务端定义,用户设置corba等服务的名称,默认为使用这个注解的类的首字母小写
 * @author weidy
 */
@Target({java.lang.annotation.ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface SOAService {
    /**
     * 服务的名字
     * @return 服务的名称,如果没有设置默认为注解类的首字母小写
     */
    String value() default "";
 
    /**
     * 服务的类型
     * @return 服务类型枚举
     */
    SOASericeType serviceType() default SOASericeType.CORBA;
 
    /**
     * 服务的类型枚举定义
     */
    public static enum SOASericeType{
        CORBA,THRIFT,WEBSERVICE,SOCKET
    }
}