AOP Context Binding With Named Pointcuts
There a a ton of new features in Spring AOP including the AspectJ pointcut language, the <aop:*/> namespace, and the @AspectJ syntax support. But by far one of the most powerful aspects (forgive the pun) is the AOP context binding.
For example, let's say you want to advise a method that takes a String as an argument.
public interface HelloService {
String getHelloMessage(String toAddHello);
}
To advise this method, you'd write a pointcut that looked for a String return type, all implementations of the HelloService interface and the getHelloMessage(String) method.
@Before("execution…