What is Aspect Oriented Programming?

Solution

Aspect-oriented programming, is a programming technique that allows programmers to modularize crosscutting concerns, or behavior that cuts across the typical divisions of responsibility, such as logging, transaction management, data validation and authentication . In Object Oriented Programming, modularity of application is achieved by Classes whereas in AOP application modularity is achieved by Aspects and they are configured to cut across different classes methods.
AOP takes out the direct dependency of cross-cutting tasks from classes that is not possible in normal object oriented programming. For example, we can have a separate class for logging but again the classes will have to call these methods for logging the data.
The core construct of AOP is the aspect, which encapsulates behaviors affecting multiple classes into reusable modules.

Share this thread

Comments

Comments
comments powered by Disqus

Navigation

Social Media