[jboss-jira] [JBoss JIRA] Created: (JBAOP-611) AspectAnnotationLoader should deploy named pointcuts etc. before deploying the binding

Kabir Khan (JIRA) jira-events at lists.jboss.org
Tue Jul 8 09:02:26 EDT 2008


AspectAnnotationLoader should deploy named pointcuts etc. before deploying the binding
--------------------------------------------------------------------------------------

                 Key: JBAOP-611
                 URL: http://jira.jboss.com/jira/browse/JBAOP-611
             Project: JBoss AOP
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
            Reporter: Kabir Khan
         Assigned To: Kabir Khan


Otherwise the following does not work in aop-mc-int

@Aspect(scope=Scope.PER_VM)
public class NamedPointcutAspect
{
   public static boolean invoked;
   
   public static void reset()
   {
      invoked = false;
   }
   
   @PointcutDef("execution(* org.jboss.test.microcontainer.annotatedaop.SimplePOJO->method())")
   Object pointcut;

   @Bind(pointcut="org.jboss.test.microcontainer.annotatedaop.NamedPointcutAspect.pointcut")
   public Object advice(MethodInvocation inv) throws Throwable
   {
      invoked = true;
      
      return inv.invokeNext();
   }
}



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list