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
|
}
|
}
|