包含其他注释的EJB3类型注释

时间:2015-02-23 12:24:12

标签: java-ee annotations

我的目标是在一个自定义注释中加入两个或多个注释的功能,这有可能??

我有这个:

@Stateless
@WebService(serviceName="MyService")
@Interceptors(TracingInterceptor.class) 
public class SimpleWS { }

我希望能够改为:

@Stateless 
@MyAnnotation
public class SimpleWS {} 

其中@MyAnnotation = @WebService(serviceName =“MyService”)+ @Interceptors(TracingInterceptor.class)

感谢您的帮助

0 个答案:

没有答案