Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Default EJB Implementation: OOP vs. AOP

Hi!

I don't understand the advantage of a default EJB implementation with AOP over a solution with pure OOP.

In "Enterprise Aspect-Oriented Programming with AspectJ" (http://newaspects.com/presentations/) it is suggested to implement empty EJB callback methods using AspectJ. An interface is used that implements the methods. With declare parents all SessionBeans are advised to implement this interface.

What is the advantage of this implementation? I can do the same thing with a simple OOP super class as well. My Beans just extend this super calss.

(Ok, with the AOP-interface-solution multiple inheritance is possible. But that is no convincing argument to me. I don't need multiple inheritance in my EJBs.)

Best regards,

Steffen


Back to the top