+1 Neat idea!
-----Original Message-----
From: Thomas Singer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 8:34 AM
To: [EMAIL PROTECTED]
Subject: Re: [Eap-features] Forwarding
+1
Indeed, the forward-ability is very powerful, because you are allowed to
hide more implementation details.
Tom
At 14:04 15.11.01 +0000, you wrote:
>Hi,
>
>Would it be possible to add composition, where inheritance might be
>inappropriate.
>
>For example if I want my class to behave like most of a collection class,
>I could embed a ArrayList inside my class. I could then
>select generate wrapper or forwarding, and from the methods I choose have
>code generated to forward the methods onto the private
>instance variable.
>
>class MyCollection {
> private ArrayList col = new ArrayList();
>
> // generate ...
> public void add(Object a) {
> col.add(a);
> }
>
> ....
>}
>
>This would be extermely useful for decorator like patterns where behaviour
>is being added selectively to some methods.
>
>There could also be an option to just generate all.
>
>Thanks,
>
>Duncan Godwin
--------------------------------------------------
DISCLAIMER
This e-mail, and any attachments thereto, is intended only for use by the
addressee(s) named herein and may contain legally privileged and/or
confidential information. If you are not the intended recipient of this
e-mail, you are hereby notified that any dissemination, distribution or
copying of this e-mail, and any attachments thereto, is strictly prohibited.
If you have received this e-mail in error, please immediately notify me and
permanently delete the original and any copy of any e-mail and any printout
thereof.
E-mail transmission cannot be guaranteed to be secure or error-free. The
sender therefore does not accept liability for any errors or omissions in
the contents of this message which arise as a result of e-mail transmission.
NOTICE REGARDING PRIVACY AND CONFIDENTIALITY
Knight Trading Group may, at its discretion, monitor and review the content
of all e-mail communications.
_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features