From 5557884a04a5649881787a6a8bef0a83bc186d72 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 6 Dec 2002 11:11:49 +0000 Subject: #105077# Updated documentation. --- udkapi/com/sun/star/java/XJavaVM.idl | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) (limited to 'udkapi/com/sun') diff --git a/udkapi/com/sun/star/java/XJavaVM.idl b/udkapi/com/sun/star/java/XJavaVM.idl index d76a9965979c..e22997ec77c0 100644 --- a/udkapi/com/sun/star/java/XJavaVM.idl +++ b/udkapi/com/sun/star/java/XJavaVM.idl @@ -2,9 +2,9 @@ * * $RCSfile: XJavaVM.idl,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: mi $ $Date: 2001-11-16 14:53:38 $ + * last change: $Author: sb $ $Date: 2002-12-06 12:11:49 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -88,6 +88,33 @@ interface XJavaVM: com::sun::star::uno::XInterface /** returns the address of the Java Virtual Machine.

If the VM is not already instantiated, it will be now.

+ +

If the processID is a normal 16-byte ID, the returned + any contains a JNI JavaVM pointer as a + long or hyper integer (depending on the + platform). If the processID does not match the current + process, an empty any is returned.

+ +

If the processID has an additional 17th byte of value + zero, the returned any contains a non-reference-counted + pointer to a (reference-counted) instance of the C++ + jvmaccess::VirtualMachine class. The pointer is guaranteed + to be valid as long as the reference to this + XJavaVM is valid (but the + pointer should be converted into a reference-counted reference as soon + as possible). Again, if the first 16 bytes of the + processID do not match the current process, an empty + any is returned.

+ +

The first form (returning a JNI JavaVM pointer) is + mainly for backwards compatibility, new code should use the second form + (returning a pointer to a jvmaccess::VirtualMachine). For + example, one advantage of using jvmaccess::VirtualMachine + instead of the raw JavaVM pointer is that whenever you + attach a native thread to the Java virtual machine, that thread's + context ClassLoader (see + java.lang.Thread.getContextClassLoader) will automatically + be set to a meaningful value.

*/ any getJavaVM( [in] sequence processID ); @@ -116,6 +143,9 @@ interface XJavaVM: com::sun::star::uno::XInterface /*============================================================================= $Log: not supported by cvs2svn $ + Revision 1.7 2001/11/16 14:53:38 mi + proofing by Richard Holt + Revision 1.6 2001/03/16 15:10:37 jsc remove interfaceheader with uik and remove [const] in method definitions -- cgit