[jboss-jira] [JBoss JIRA] Closed: (JBAOP-610) Allow the use of "this" in annotated named pointcuts, typedefs etc.
Stale Pedersen (JIRA)
jira-events at lists.jboss.org
Thu Jul 17 10:52:52 EDT 2008
[ https://jira.jboss.org/jira/browse/JBAOP-610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stale Pedersen closed JBAOP-610.
--------------------------------
Resolution: Done
"this" is not supported for typedefs, cflow, pointcuts and interceptors.
> Allow the use of "this" in annotated named pointcuts, typedefs etc.
> -------------------------------------------------------------------
>
> Key: JBAOP-610
> URL: https://jira.jboss.org/jira/browse/JBAOP-610
> Project: JBoss AOP
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Reporter: Kabir Khan
> Assignee: Stale Pedersen
> Fix For: 2.0.0.GA
>
>
> Currently you have to use the fqn when referencing these things:
> package org.jboss.test.microcontainer.annotatedaop;
> @Aspect(scope=Scope.PER_VM)
> public class SomeAspect
> {
> @TypeDef("class(org.jboss.test.microcontainer.annotatedaop.SimplePOJO)")
> Object typedef;
> @PointcutDef("execution(* $typedef{org.jboss.test.microcontainer.annotatedaop.SomeAspect.typedef}->method())")
> Object pointcut;
> @Bind(pointcut="org.jboss.test.microcontainer.annotatedaop.SomeAspect.pointcut")
> public Object advice(MethodInvocation inv) throws Throwable{}
> }
> it would be better to be able to do:
> package org.jboss.test.microcontainer.annotatedaop;
> @Aspect(scope=Scope.PER_VM)
> public class SomeAspect
> {
> @TypeDef("class(org.jboss.test.microcontainer.annotatedaop.SimplePOJO)")
> Object typedef;
> @PointcutDef("execution(* $typedef{this.typedef}->method())")
> Object pointcut;
> @Bind(pointcut="this.pointcut")
> public Object advice(MethodInvocation inv) throws Throwable{}
> }
> The word "this" is just a suggestion, if we could get rid of it, that would be better. If we need to keep it, we might want to use something more recognisable for string replacement, for exampe "$this$"
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list