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:
“There is nothing intrinsically better about a child who happily bounces off to school the first day and a child who is wary, watchful, and takes a longer time to separate from his parents and join the group. Neither one nor the other is smarter, better adjusted, or destined for a better life.”
—Ellen Galinsky (20th century)
“Many women are surprised by the intensity of their maternal pull and the conflict it brings to their competing roles. This is the precise point at which many women feel the stress of the work/family dilemma most keenly. They realize that they may have a price to pay for wanting to be both professionals and mothers. They feel guilty for not being at work, and angry for being manipulated into feeling this guilt. . . . They dont quite fit at home. They dont quite fit at work.”
—Deborah J. Swiss (20th century)
“Today it is not the classroom nor the classics which are the repositories of models of eloquence, but the ad agencies.”
—Marshall McLuhan (19111980)