It's been a while, but from the top of my head:

  | @Target(TYPE)
  | @Retention(RUNTIME)
  | @Interceptors(QuestionRemovedInterceptor.class)
  | public @interface QuestionRemoved {}
  | 
  | @Interceptor
  | public class QuestionRemovedInterceptor {
  | 
  |    @AroundInvoke
  |    public aroundInvoke(SecurityContext ctx) {
  |    
  |       // your code
  |       return ctx.proceed();
  |    }
  | }
  | 

Check section 5 of the manual

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123157#4123157

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123157
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to