+1 At 01:22 AM 16/11/2001, you wrote: >+1 > > >#please alway use [EMAIL PROTECTED] > > > -----Original Message----- > > From: Duncan Godwin [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, November 15, 2001 3:05 PM > > 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 > > > > >---------------------------------------------------------------------------------- >Diese eMail wurde durch einen Geschaeftspartner der comdirect bank >vom eMail Server der comdirect bank AG verschickt. > >_______________________________________________ >Eap-features mailing list >[EMAIL PROTECTED] >http://www.intellij.com/mailman/listinfo/eap-features
-- Stock Software Pty Ltd _______________________________________________ Eap-features mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-features
