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:
“Stupid or smart, there wasnt much choice about what was going to happen to me ... Growing up was like falling into a hole.... I might not quit school, not while Mama had any say in the matter, but what difference would that make? What was I going to do in five years? Work in the textile mill? Join Mama at the diner? It all looked bleak to me. No wonder people got crazy as they grew up.”
—Dorothy Allison (b. 1953)
“All Coolidge had to do in 1924 was to keep his mean trap shut, to be elected. All Harding had to do in 1920 was repeat Avoid foreign entanglements. All Hoover had to do in 1928 was to endorse Coolidge. All Roosevelt had to do in 1932 was to point to Hoover.”
—Robert E. Sherwood (18961955)
“Friends broaden our horizons. They serve as new models with whom we can identify. They allow us to be ourselvesand accept us that way. They enhance our self-esteem because they think were okay, because we matter to them. And because they matter to usfor various reasons, at various levels of intensitythey enrich the quality of our emotional life.”
—Judith Viorst (20th century)