Article View: borland.public.jbuilder.java.language
Article #8651Interface and class visibility
From: Chris
Date: Mon, 05 Mar 2001 19:23
Date: Mon, 05 Mar 2001 19:23
37 lines
2657 bytes
2657 bytes
I need someone to tell me if the following 2 items are true or false: first of all is the visibility of classes to other classes: If I am following the EJB specifications and I have designed classes with interfaces and homes then other classes that use my class should NEVER be able to see my class file. They should be able to see my home and my interface to thay can construct my class, but for all intents and purposes, I could move my class into another directory that is not imported by any other classes. secondly, is information ported to a visible front end: If I write a JSP that displays information from 2 objects, lets say an Account and an Address and an Account interface is designated to have an Address with a getter. Also, each of these objects has a value bean.. that is to say a non EJB bean that implements the corosponding business interfaces that the EJB's themselves also implement. Now here is where I am getting lip. I believe that my JSP would obtain an Account value bean, display that info, then ask the Account value bean for it's Address object and then display that info. I have been told that that would not be correct, but instead one should have create a new calue bean that does not implement anything except Serializable that contains all the info in simple types of the Address AND the Account objects and that the JSP should ask for that object and use it instead. I have been working with interfaces for quite some time and also with the EJB specification and the CORBA specifications and I'm pretty sure I am right, but apparantly I need someone else to help me in my argument. Thanks in advance, Chris Houghten chris@houghten.com
Technical Details
Message-ID:
<3aa3e7aa$1_1@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!feed2.onemain.com!feed1.onemain.com!news-out.cwix.com!newsfeed.cwix.com!newsfeed.yosemite.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsfeed01.tsnz.net!bornews.borland.com!dnews!209.141.43.2Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,a8448696aadbc2c4,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-03-05 11:38:04 PST From: "Chris" <inprise@houghten.com> Newsgroups: borland.public.jbuilder.java.language Subject: Interface and class visibility Date: Mon, 5 Mar 2001 14:23:15 -0500 Lines: 39 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 209.141.43.2 Message-ID: <3aa3e7aa$1_1@dnews> X-Trace: 5 Mar 2001 11:23:22 -0800, 209.141.43.2 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!feed2.onemain.com!feed1.onemain.com!news-out.cwix.com!newsfeed.cwix.com!newsfeed.yosemite.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsfeed01.tsnz.net!bornews.borland.com!dnews!209.141.43.2