Spring AOP-dynamic pointcuts

1.3k views Asked by At

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 from source)

1

There are 1 answers

1
Sean Patrick Floyd On

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.