Re: simple java question with WOComponent sub-classes
Re: simple java question with WOComponent sub-classes
- Subject: Re: simple java question with WOComponent sub-classes
- From: Chuck Hill <email@hidden>
- Date: Thu, 6 Jul 2006 12:50:30 -0700
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden