On Thu, 13 Jul 2000 13:03:22 -0700, J. Matthew Pryor <[EMAIL PROTECTED]>
wrote:
>OK so here is another issue I have with this "Business Interface" design
>pattern that I can't think of a good solution for.
>
>Say I have 2 business interfaces : BusinessInterfaceA & BusinessInterfaceB
>
>I define my 2 "local" or BO interfaces (and sure all the methods have to
>throw RemoteException)
>
>But what if I want to model an association between BusinessInterfaceA &
>BusinessInterfaceB
>
>I can't write a method on BusinessInterfaceA like:
>
>public BusinessObjectB getAReferenceToYouWellKnownFriendMrB() throws
>RemoteException;
>
>Because when I move to my "remote" version of BusinessInterfaceA, the return
>type of the method would need to change to
>
>public RemoteBusinessObjectB getAReferenceToYouWellKnownFriendMrB() throws
>RemoteException;
Why? :-)
RemoteBusinessObjectB extends BusinessObjectB. Thus, RBOB can be cast to
a BOB. Hence, the method can return BOB, which could be an instance
implementing RBOB.
Explain, very explicitly, what is the problem? I don't see it.
regards,
Rickard
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".