Aravind
Aravind

Reputation: 2198

Creating Pointcut annotation in Spring aspectj in Java

I am using org.aspectj.lang.annotation.Pointcut. I have an interface com.home.learn.Try.

I used @Pointcut("execution(com.home.learn.Try.*(..))") but i got the error

Pointcut is not well-formed: expecting 'name pattern' at character position 34
execution(com.home.learn.Try.*(..))

Also I am curious about how to create pointcut annotation to watch all methods of a concrete class which extends an abstract class.

Thanks

Upvotes: 0

Views: 2636

Answers (1)

abalogh
abalogh

Reputation: 8281

Try execution(* com.home.learn.Try.*(..)).

You can find a cheat sheet here.

Upvotes: 2

Related Questions