What is aspect oriented programming?When A computer program is broken into distinct features that overlap in functionality is called as Separation of concerns. Aspect oriented programming (AOP) aims to improve the process of Separation of concerns thereby increasing modularity. Data logging is a common example of such separation of concern by crosscutting the logged classes and methods. Any AOP implementation encapsulates each concern in one place.What is cross cutting in AOP?A cross cutting concern in AOP is an aspect of a program affecting other concerns. Login can be an Aspect as it affects other parts of the code. A cross cutting concern is of such nature that it can be easily separated from the system. This separation is possible both in design and implementation.
|