[jboss-jira] [JBoss JIRA] (AS7-4599) @InterceptorBinding annotation does not work

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Tue Apr 24 00:43:18 EDT 2012


    [ https://issues.jboss.org/browse/AS7-4599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12686952#comment-12686952 ] 

Stuart Douglas commented on AS7-4599:
-------------------------------------

Is your interceptor listen in beans.xml of the hat containing the intercepted class?
                
> @InterceptorBinding annotation does not work
> --------------------------------------------
>
>                 Key: AS7-4599
>                 URL: https://issues.jboss.org/browse/AS7-4599
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: CDI / Weld
>    Affects Versions: 7.1.1.Final
>            Reporter: v a
>            Assignee: Stuart Douglas
>
> javax.interceptor.InterceptorBinding annotation does not work in JBoss 7.1.1.Final. Here is a test case.
> {code}
> @Inherited
> @Target({ TYPE, METHOD })
> @Retention(RUNTIME)
> @InterceptorBinding
> public @interface Secure {}
> @Secure
> @Interceptor
> public class SecurityInterceptor {
>   @AroundInvoke
>   public Object invoke(InvocationContext ctx) throws Exception
>   {
>     System.out.println("here " + ctx);
>     return ctx.proceed();
>   }
> }
> @Stateless
> @Secure
> public class Test {
>   public void test() {
>     System.out.println("Test");
>   }
> }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list