|
Aspect- vs. Object-Oriented Programming
|
|
|
|
|
Contributed by Chad Brandt
|
|
|
|
Thursday, 16 June 2005
A nice article descibes how OOP and AOP differ and also how they can compliment each other in your code. Aspect-oriented programming (AOP) addresses many problems that traditional OOP doesn't solve completely or directly This article presents a similar case study. It begins by introducing a
problem domain and then demonstrates two solutions: one that uses OOP and one
using AOP. The AOP solution uses a JDK 1.5, JUnit, and AspectWerkz
implementation. (The complete source code
for both approaches is available in the "Download the Code" section in the
left-hand column.) Finally, it demonstrates how to code a few aspects.
Read Full Article Only registered users can write comments. Please login or register. Powered by AkoComment 1.0 beta 2! |