ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  A Java Programmer Looks at C# Delegates
Subject:   AOP Frameworks
Date:   2003-05-27 09:11:37
From:   crazybob
Another Java-based approach is to use one of the up and coming AOP frameworks (Nanning is a good example). They often refer to this type of construct as an Introduction or a Mixin. They do not require you to couple the "delegate" code with the delegating class, which is often desirable, and they save on a lot of typing. Additionally note that all of these approaches let you partially and cleanly capture the functionality multiple inheritance provides.