On Jul 6, 2006, at 11:18 AM, Baiss Eric Magnusson wrote:


I have a class
        public class SecureComponent extends WOComponent {

I have
        public class ReviewTrans extends SecureComponent {

I want it to be
        public class ReviewTrans extends SecureComponent   {
where <SecureComponent> is a sub-class of WOLongResponsePage, not WOComponent, but only for this one class.

NOTE: WOLongResponsePage is a sub-class of WOComponent.

All I can see to do is duplicate the code in SecureComponent and create another class <SecureComponentLong>.

That is the expedient way as Java does not support multiple inheritance. The only other option that I can think of is AOP (http://www.stepwise.com/Articles/AspectJ/). But that is overkill for the small amount of duplication you are talking about.

Chuck

--
Coming sometime... - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to archive@mail-archive.com

Reply via email to