开发者

Spring AOP-dynamic pointcuts

开发者 https://www.devze.com 2023-03-03 06:10 出处:网络
What is de purpose of CONTROLFLOWPOINTCUTS, for what purpose it is intended for, where and all it can be used?

What is de purpose of CONTROLFLOWPOINTCUTS, for what purpose it is intended for, where and all it can be used?

What are the advantages of dynamic pointcuts??

Explain CONTROLFLOW POINTCUT with an example, where it is configured in XML file(decoupled fr开发者_JAVA百科om source)


This smells like homework, and I don't want to do that for you, but:

AspectJ / Spring AOP resources on the web are miserable.

Try if you can get a hard or digital copy of AspectJ in Action somewhere, it includes explanations of the cflow and cflobelow pointcuts.

Otherwise, here's a definition from the AspectJ Quick Reference:

cflow ( call(void Figure.move()) )

any join point in the control flow of each call to void Figure.move(). This includes the call itself.

cflowbelow ( call(void Figure.move()) ) 

any join point below the control flow of each call to void Figure.move(). This does not include the call.

0

精彩评论

暂无评论...
验证码 换一张
取 消