That is not possible. You will have to go with the original pointcut and do some filtering
in your advice depending on the value of the annotation, e.g.:
| public Object invoke(Invocation inv) throws Throwable
| {
| MyAnnotation ma = inv.resolveAnnotation(MyAnnotation.class);
| if (ma.value = MyValue.BAR)
| {
| //Do stuff
| return inv.invokeNext();
| }
| else
| {
| inv.invokeNext();
| }
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182631#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...