Re: Services and packaging dependencies

Gregg Wonderly <[email protected]>
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
Patrick Wright wrote:
> Mark, Gregg: Thanks to both of you for the reply, very helpful to know
> we aren't that far off in our approach.
>
> I have a follow-up question--do you suggest the same strategy when
> using a third-party library where a method returns an instance of a
> class which is not final? It seems that unless you're sure you know
> what the possible subclasses are, you either have to risk it, or else
> make sure the service API uses only classes you control (what it does
> internally is another issue). Any thoughts on that?

I don't think there's anything magic you can do here.  The classes sent across
the wire, have to be resolved.  I've historically only needed/implemented
transport of classes which are my own.  Sometimes I marshall data from other,
3rd party classes into my own for transport.

Gregg Wonderly

--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.