spring-projects / spring-framework

Spring Framework
https://spring.io/projects/spring-framework
Apache License 2.0
56.39k stars 38.06k forks source link

Reference manual section on using parameterized pointcuts in XML style [SPR-3921] #8601

Closed spring-projects-issues closed 12 years ago

spring-projects-issues commented 17 years ago

Taras Tielkes opened SPR-3921 and commented

Section 6.3.2 of the reference manual states: — Note that pointcuts defined in this way are referred to by their XML id, and cannot define pointcut parameters. The named pointcut support in the schema based definition style is thus more limited than that offered by the @AspectJ style. —

This seems not completely correct - or at least incomplete.

For example, consider the following: —

— public Object around(ProceedingJoinPoint pjp, String a, String b) throws Throwable { // ... } — It seems that - in effect - it actually is possible to define a pointcut in XML style that contains parameters (the `@Pointcut` analog would be using pointcut parameters). I think a bit of clarification could be added to this section of the manual - or at least the wording could be more explicit about what's supported and what's not. --- **Affects:** 2.0.6, 2.1 M4
spring-projects-issues commented 17 years ago

Ramnivas Laddad commented

Fixed the documentation to add clarification and an example.