Tuesday, October 4, 2011

Spring AOP pointcut declaration

A pointcut declaration has two parts:
a signature comprising a name and any parameters, and a pointcut expression that determines exactly which method executions we are interested in.
In the @AspectJ annotation-style of AOP, a pointcut signature is provided by a regular method definition, and the pointcut expression is indicated using the @Pointcut annotation (the method serving as the pointcut signature must have a void return type).

No comments:

Post a Comment