View RSS Feed

Spring Framework

Spring Framework and AOP

Rate this Entry
by , 07-07-2012 at 06:27 PM (1059 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:

Auditing
Logging
Declarative transactions
Cashing
Security

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.

Submit "Spring Framework and AOP" to Facebook Submit "Spring Framework and AOP" to Digg Submit "Spring Framework and AOP" to del.icio.us Submit "Spring Framework and AOP" to StumbleUpon Submit "Spring Framework and AOP" to Google

Categories
AOP

Comments