[2031] in java-interest

home help back first fref pref prev next nref lref last post

Re: [Q] protocol of an object

daemon@ATHENA.MIT.EDU (Thomas Ball)
Fri Sep 22 04:47:29 1995

Date: Thu, 21 Sep 1995 13:44:32 -0700
From: Thomas.Ball@Eng.Sun.COM (Thomas Ball)
To: neudeck.arthur@ch.swissbank.com
Cc: java-interest@java.Eng.Sun.COM

There is no way to do this with the current Java API, unless you are either
willing to use the debugger API or write your own native method.  The 
problem with using the debugger API is that your app will be difficult to
distribute, since non-developers will be rarely running it.  We also
purposely made it easy to delete the debugger entirely (get rid of the
agent shared library and the classes in sun/tools/debug and 
sun/tools/ttydebug), for those customers who don't want to distribute it.
You therefore can't count on it being installed, unless you stay on your
own machine.

If you want to write a native method, check out oobj.h -- with a class
object, it's a simple matter to browse its methodtable.

Tom

>  From daemon@java  Thu Sep 21 00:01:35 1995
>  To: java-interest@java.Eng.Sun.COM
>  Subject: [Q] protocol of an object
>  Cc: neudeca@ch.swissbank.com
>  X-Info: To unsubscribe, send 'unsubscribe' to java-interest-request@java.sun.com
>  
>  Hi ....
>  
>  I'm writing on a thesis about travelling objects [8-O], and I was
>  thinking about using Java for implementing a prototype...
>  
>  Now I need a method that delivers dynamically (and at runtime)
>  all public methods of an object.
>  
>  I already did try ObjectScope, but it didn't work.
>  
>  Any ideas ???
>  
>  Thanks, Arthy
>  -
>  Note to Sun employees: this is an EXTERNAL mailing list!
>  Info: send 'help' to java-interest-request@java.sun.com
>  
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post