[
https://jira.jboss.org/jira/browse/JBAOP-610?page=com.atlassian.jira.plug...
]
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