+1

This would be excellent!  One of those rarely-used but extremely useful
tools (like migrate).

Cheers,
Dan

> -----Original Message-----
> From: Duncan Godwin [mailto:[EMAIL PROTECTED]]
> Sent: 15 November 2001 14:05
> To: [EMAIL PROTECTED]
> Subject: [Eap-features] Forwarding
> 
> 
> 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
> 
> 
> 
> 
> _______________________________________________
> Eap-features mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-features
> 


***************************************************************************************
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. 
If you have received this email in error please notify [EMAIL PROTECTED] 
immediately.

This footnote also confirms that this email message has been swept for the 
presence of computer viruses.
***************************************************************************************

_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features

Reply via email to