Aspect Oriented Programming
Aspect Oriented Programming (AOP) is relatively new practice and was born because programmers discovered that there are things that Object Oriented Programming (OOP) can’t do. While OOP encourages modularity, encapsulation, inheritance and polymorphism, AOP separates concerns into modules or aspects. This way, when we need to maintain large projects, it would be easier because we would only need to edit certain modules and not the whole thing.
Aspects are like blankets that cover many components of the application. Examples are logging, transaction management and security. AOP will make it possible for these services to reach the whole program without having to intrude in the program’s main functionality. They would be implemented when they need to be and the program will know when.
An example in Spring in Action by Manning is the Minstel and the Knight. The minstrel would have to sing for the knight before and after the knight goes to battle. AOP is implemented here because the action of the minstel is not declared in the class of the knight, rather in the embarkOnQuest method of the program.
I am not yet sure which part of Projectrix can we use this but it definitely helped clear Spring concepts.
You placed your blog post again in the “1″ category! tsk tsk tsk hahaha.
Jose Asuncion
November 8, 2009 at 7:34 am
Wah. I did’t mean that! huhuhuhu
Dan
November 8, 2009 at 11:41 am