I have several EJB3.0 interceptors that require additional configuration. So far, I just added interceptors via @Interceptors( { MyInterceptor.class } ) , and then added a second user annotation like @MyInterceptorConfiguration(value=something) .
This is pretty tiring. Is it possible to annotate an annotation so that it causes an interceptor to be added? Ideally, I would just add @DoMyInterception(config=foo) to the class and add this interceptor.
Carl-Eric Menzel
source share