Article View: aus.computers.java
Article #239Re: Multiple interfaces
From: Coho (Richard Swain)
Date: Fri, 21 Jun 2002 13:44
Date: Fri, 21 Jun 2002 13:44
29 lines
2694 bytes
2694 bytes
I agree, but the original problem provided some very awkward constraints. Darryl L. Pierce wrote: > On Thu, 20 Jun 2002 19:51:14 -0400, Wayne Berke wrote: > > >>>That's not too bad. Except that there's no way to get back from the >>>Intf1 to the original myClass object. I'm not sure you should ever want >>>to, but I still feel alienated by this somehow. >>> >>> >> >>You could do this if you really wanted to do. What you'd have to do is >>enhance all your interfaces with an extra method: >> >> Object getContainingObject(); > > > Ah, jaysus, now the interface that you want implemented has to have > specific knowledge of any object that _might_ be owner? This is truly > getting to be spaghetti code now. Anything of the sort describe would > sure get marked in code review as needing to be reimplemented. What > you're describing shows a marked lack of design consideration. > -- http://www.krang.f9.co.uk
Technical Details
Message-ID:
<3D132DC5.2080202@krang.f9.co.uk>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news-hog.berkeley.edu!ucberkeley!newshub.sdsu.edu!west.cox.net!cox.net!newspeer1-gui.server.ntli.net!ntli.net!news8-gui.server.ntli.net.POSTED!53ab2750!not-for-mailReferences:
<1024283082.192985@web.apex.net.au> <JScP8.111$Fv1.17660@newsread2.prod.itd.earthlink.net> <1024289793.45649@web.apex.net.au> <pan.2002.06.17.07.46.24.235390.777@databasix.com> <3D0F7E91.5010401@krang.f9.co.uk> <3d10edc6.1491361@news.virgin.net> <3D1101BE.40506@krang.f9.co.uk> <3d121553.1321895@news.virgin.net> <3D126A72.4123E49B@i.hate.spam> <pan.2002.06.21.07.16.04.89148.1938@databasix.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10a146,113f3357bc588129 X-Google-Attributes: gid10a146,public X-Google-Thread: 10d6db,113f3357bc588129 X-Google-Attributes: gid10d6db,public X-Google-Thread: f74b3,113f3357bc588129 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2002-06-21 06:44:06 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news-hog.berkeley.edu!ucberkeley!newshub.sdsu.edu!west.cox.net!cox.net!newspeer1-gui.server.ntli.net!ntli.net!news8-gui.server.ntli.net.POSTED!53ab2750!not-for-mail Message-ID: <3D132DC5.2080202@krang.f9.co.uk> From: "Coho (Richard Swain)" <vibron@krang.f9.co.uk> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en,ru MIME-Version: 1.0 Newsgroups: aus.computers.java,borland.public.jbuilder.java.language,comp.lang.java.programmer Subject: Re: Multiple interfaces References: <1024283082.192985@web.apex.net.au> <JScP8.111$Fv1.17660@newsread2.prod.itd.earthlink.net> <1024289793.45649@web.apex.net.au> <pan.2002.06.17.07.46.24.235390.777@databasix.com> <3D0F7E91.5010401@krang.f9.co.uk> <3d10edc6.1491361@news.virgin.net> <3D1101BE.40506@krang.f9.co.uk> <3d121553.1321895@news.virgin.net> <3D126A72.4123E49B@i.hate.spam> <pan.2002.06.21.07.16.04.89148.1938@databasix.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 30 Date: Fri, 21 Jun 2002 14:44:37 +0100 NNTP-Posting-Host: 80.4.131.205 X-Complaints-To: abuse@ntlworld.com X-Trace: news8-gui.server.ntli.net 1024667045 80.4.131.205 (Fri, 21 Jun 2002 14:44:05 BST) NNTP-Posting-Date: Fri, 21 Jun 2002 14:44:05 BST Organization: ntlworld News Service