[jboss-jira] [JBoss JIRA] (AS7-4599) @InterceptorBinding annotation does not work
v a (JIRA)
jira-events at lists.jboss.org
Wed Apr 25 00:59:18 EDT 2012
[ https://issues.jboss.org/browse/AS7-4599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12687415#comment-12687415 ]
v a commented on AS7-4599:
--------------------------
Forgot to register it in beans.xml, sorry for disturbing.
> @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