I'm a software engineer, interested learning the best technologies, and contribute to the industry.
Tuesday, April 26, 2016
Spring AOP AspectJ Pointcut Expression
any public functions
any return type
any function name
any/no arguments
execution(public * *(..))
Any public functions which name start with "set"
execution(* set*(..))
All ABCService interface's function
execution(* com.abc.ABCService.*(..))
All functions classes in package abc
execution(* com.abc.*.*(..))
All functions classes in package abc or sub-package of abc
execution(* com.abc..*.*(..))
can use "||" "&&" like
execution(* set*(..)) && execution(* com.abc.*.*(..))
More See this
http://howtodoinjava.com/spring/spring-aop/writing-spring-aop-aspectj-pointcut-expressions-with-examples/
Labels:
Spring,
Spring AOP
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment