Join Point Models
The advice-related component of an aspect-oriented language defines a join point model (JPM). A JPM defines three things:
- When the advice can run. These are called join points because they are points in a running program where additional behavior can be usefully joined. A join point needs to be addressable and understandable by an ordinary programmer to be useful. It should also be stable across inconsequential program changes in order for an aspect to be stable across such changes. Many AOP implementations support method executions and field references as join points.
- A way to specify (or quantify) join points, called pointcuts. Pointcuts determine whether a given join point matches. Most useful pointcut languages use a syntax like the base language (for example, AspectJ uses Java signatures) and allow reuse through naming and combination.
- A means of specifying code to run at a join point. AspectJ calls this advice, and can run it before, after, and around join points. Some implementations also support things like defining a method in an aspect on another class.
Join-point models can be compared based on the join points exposed, how join points are specified, the operations permitted at the join points, and the structural enhancements that can be expressed.
Read more about this topic: Aspect-oriented Programming
Famous quotes containing the words join, point and/or models:
“I respect the ways of old folks, but the blood of a rooster or a goat cannot turn the seasons, change the course of the clouds and fill them up with water like bladders. The other night, at the ceremony for Legba, I danced and sang my fill: I am a black man, no? and I enjoyed it like a true Negro should. When the drums beat, I feel it in the pit of my stomach, I feel the itch in my hips and up and down my legs, I have got to join the party. But that is all.”
—Jacques Roumain (19071945)
“I am the kind of a woman that likes to move on mentally from point to point, and I like for my man to be there way ahead of me. Then if he is strong and honest, it goes on from there. Good looks are not essential, just extra added attraction.”
—Zora Neale Hurston (18911960)
“The greatest and truest models for all orators ... is Demosthenes. One who has not studied deeply and constantly all the great speeches of the great Athenian, is not prepared to speak in public. Only as the constant companion of Demosthenes, Burke, Fox, Canning and Webster, can we hope to become orators.”
—Woodrow Wilson (18561924)