Wednesday, 29 August 2012

Aspect Oreinted programming


 Advice is the job of an Aspect.

JOIN POINTS:
A join point is a point in
the execution of the application where an aspect can be plugged in. This point could
be a method being called, an exception being thrown, or even a field being modified.

POINTCUTS:
If advice defines the what and when of aspects, then pointcuts define the where. A
pointcut definition matches one or more join points at which advice should be woven.
Often you specify these pointcuts using explicit class and method names or through
regular expressions that define matching class and method name patterns. Some AOP
frameworks allow you to create dynamic pointcuts that determine whether to apply
advice based on runtime decisions, such as the value of method parameters.

An aspect is the merger of advice and pointcuts. Taken together, advice and point-
cuts define everything there is to know about an aspect—what it does and where and
when it does it.



No comments:

Post a Comment