Get interface of a class (runtime)

N

.:[NeMo]:.

Without know a class interface, how can I get "the class interface" ?
I think with reflection, but seem a dirty work (or not?).

With RMI the client an server have/know the same interface so the client
get the "code" from a codebase;
in my case instead the client it doesn't know the interface, only has a
reference to the class.

In particular I use javaspace:
server ---> JAVASPACE ----> client
the server/producer introduces an object in the javaspace,
the client/consumer saw a "new object" in the javaspace
and want get the interface of it....
only with reflection? Does exist a more clean way?

Javaspace implements a method to recover the interface of object?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top