Hi all,
We are having a slight issue getting the @AspectJ annotations to work on an around advice.
We have done a search, but fail to find any explantion of the annotation syntax, so were hoping you guys would help.
We have a class A.
A has several methods all of which we wish to put @Around advice on, so that we can change the exception that is being thrown.
Here is an example of the @AspectJ class we are using:
We are happy with the actual advice, but we dont understand the syntax of the annotation:Code:..... @Around("Execution(* com.myclasses..*Dao(..))" public Object aMethod(ProceedingJoinPoint pjp){ }
What does the first * represent, is it the return type?
Is the .*Dao acceptable?
what is the meaning of the (..)?
Thanks
G


Reply With Quote
