Re: class name?

Mark Brouwer <[email protected]>
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
Rikard Elofsson wrote:
> Hi all
>
> I use a ServiceDiscoveryListener to find services. In the method
> serviceAdded I try to access the name of the class i just discovered
> with evt.getPostEventServiceItem().service.getClass().getName()
>
> All I get is stuff like "$Proxy10" and not the actual name of the
> service class.

Not enough information to give you an answer that is 100% accurate, but
I think you have found a service that has a dynamic proxy as 'stub' and
not a specialized proxy (the thing in front you write yourself).
"$Proxy10" resembles the class name for a dynamic proxy.

I don't know what you try to accomplish, but it might be better if you
did something like evt.getPostEventServiceItem().service.toString(). The
Jini ERI dynamic proxies will show the class name and also list all the
interfaces implemented by that dynamic proxy.
--
Mark

--------------------------------------------------------------------------
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.