Spring Framework and AOP
by, 07-07-2012 at 06:27 PM (907 Views)
The Aspect Oriented Programming (AOP) framework is the key Spring framework component. Program logic is breaked down into unique parts by the Aspect Oriented Programming which are called so-called concerns. The cross cutting concerns are the functions of an application which are based on multiple points. The application business logic is seprated from cross cutting concerns conceptually. Following are the examples of aspects:
• Declarative transactions
The class is the key modular unit in OOP where as the aspect is the key modular unit in Aspect Oriented Programming. You can decouple the application objects from other objects with the help of dependency injection and cross cutting concerns are decoupled using AOP from the affected object. AOP behaves like triggers similar to other programming languages like Java, .Net, Perl and others.
An application is intercepted using Spring AOP module. For example extra functionality can be added when a method is executed after and before its execution.