How Spring's Pointcut Environment Works Inside

I'm just wondering how the Pointcutframework works in Spring inside. How does he know which method will be executed next (and then he does his work before / after the method is executed)? Is this somehow reflected? Even if I put a debug point in the definition Pointcut, the debugger will not hit it.

+4
source share
2 answers

This is accomplished by proxying your aspect method. The method call is replaced by the proxy method call. The proxy method performs preliminary annotations first, then calls your original method and then executes subsequent annotations.

- , , .

+5

, , . , pointcuts - , , , , .

Spring, . , , , . - .

, , , , , Spring. Spring .

JAX-RS, , , Spring, JAX-RS, .

wild card, , - Spring - .

P.S , .

0

All Articles