What is Aspect in AOP?

What is Aspect in AOP?

- Advice: This is the additional code that you want to apply to your existing model.
- Point-cut: This is the term given to the point of execution in the application at which cross-cutting concern needs to be applied.
- Aspect is the combination of the point-cut and the advice is termed an aspect.

What is Aspect in AOP?

Aspect is a program segment that cross-cuts the core concerns of the application. For instance, after logging, different functional concerns of different modules are to be performed. So, the logging code can cross-cut these modules, though the aspect of logging is separate.
AOP approach addresses Crosscutting concerns. Explain
AOP approach addresses Crosscutting concerns - Examples of these “cross-cutting concerns” can be:Security, Transactions,Logging...
Components of AOP
components of AOP - Advice / Interceptor: An object that intercept the invocation of a method before its execution. Interceptor embodies the behavior to add or remove or replace the functionality of infrastructure........
AOP vs OOPs
AOP vs OOPs - AOP : Addresses cross cutting concerns, Code creation is clear, Reusability of code is at a great extent.......
Post your comment