spring AOP 常用表达式
Some examples of common pointcut expressions are given below.
the execution of any public method:
?'this' is more commonly used in a binding form :- see the following section on advice for how to make the proxy object available in the advice body.
?
any join point (method execution only in Spring AOP) where the target object implements the?
?'target' is more commonly used in a binding form :- see the following section on advice for how to make the target object available in the advice body.
?
any join point (method execution only in Spring AOP) which takes a single parameter, and where the argument passed at runtime is?
'args' is more commonly used in a binding form :- see the following section on advice for how to make the method arguments available in the advice body.Note that the pointcut given in this example is different to?
?'@target' can also be used in a binding form :- see the following section on advice for how to make the annotation object available in the advice body.
?
any join point (method execution only in Spring AOP) where the declared type of the target object has an?
?'@within' can also be used in a binding form :- see the following section on advice for how to make the annotation object available in the advice body.
?
any join point (method execution only in Spring AOP) where the executing method has an?
?'@annotation' can also be used in a binding form :- see the following section on advice for how to make the annotation object available in the advice body.
?
any join point (method execution only in Spring AOP) which takes a single parameter, and where the runtime type of the argument passed has the?
?'@args' can also be used in a binding form :- see the following section on advice for how to make the annotation object(s) available in the advice body.
?
any join point (method execution only in Spring AOP) on a Spring bean named '
tradeService':bean(tradeService)any join point (method execution only in Spring AOP) on Spring beans having names that match the wildcard expression '
*Service':bean(*Service)