Aspect-Oriented Programming: Submitted To:-Submitted By
Aspect-Oriented Programming: Submitted To:-Submitted By
Programming
• Aspect:-
A modularization of a concern that cut
across multiple classes.
For example, a logging module would be called AOP
aspect for logging.
Terminology
• Join-point:-
It is a well-defined position in a
program, such as throwing an exception or invoking
a method.
• Advice:-
It is a class of functions that can
modify other functions. It is applied at a given join
point of a program.
Types of Advice
Before Advice :- It executes before a join-point.
• Introduction:-
A feature that’s used to declare
additional methods and attributes for a particular
type.
Terminology
• Target object:-
The object being advised by
one or more aspects. This object will always be a
proxied object .It also referred to as the advised
object.
• AOP proxy:-
It is an object created by AOP
framework in order to implement the aspect contracts
(advise method execution and so on).
Terminology
• Weaving:-
It is the process in which an
aspect is added into an object. It can be executed in
the compiling time or during the running of the
program.