このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Interface XJavaVM
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: 星/主役にする :: java ::

deprecated interface XJavaVM
Usage 制限s
deprecated
Deprecation Info
A UNO interface seems to be at the wrong abstraction level for this functionality (also, the C++ classes jvmaccess::VirtualMachine and jvmaccess::UnoVirtualMachine used by XJavaVM::getJavaVM are not part of the public C++ UNO runtime API). This should probably be 取って代わるd by an appropriate C/C++ API.
Description
must be 器具/実施するd by the 使用者 of the XJavaVM.

Methods' 要約
getJavaVM returns the 演説(する)/住所 of the Java 事実上の Machine.  
isVMStarted returns true if the VM is started 首尾よく, さもなければ 誤った.  
isVMEnabled Returns true if the VM is enabled.  
Methods' 詳細(に述べる)s
getJavaVM
any
getJavaVM( [in] sequence< byte >  processID );

Description
returns the 演説(する)/住所 of the Java 事実上の Machine.

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

If the processID is a normal 16-byte ID, the returned any 含む/封じ込めるs a JNI JavaVM pointer as a long or hyper integer (depending on the 壇・綱領・公約). If the processID does not match the 現在の 過程, or if the VM cannot be instantiated for whatever 推論する/理由, a 無効の any is returned.

If the processID has an 付加 17th byte of value 0, the returned any 含む/封じ込めるs a 非,不,無–言及/関連-counted pointer to a (言及/関連-counted) instance of the C++ jvmaccess::VirtualMachine class, always 代表するd as a hyper integer. The pointer is 保証(人)d to be valid as long as the 言及/関連 to this XJavaVM is valid (but the pointer should be 変えるd into a 言及/関連-counted 言及/関連 as soon as possible). Again, if the first 16 bytes of the processID do not match the 現在の 過程, or if the VM cannot be instantiated for whatever 推論する/理由, a 無効の any is returned.

If the processID has an 付加 17th byte of value 1, the returned any 含む/封じ込めるs a 非,不,無–言及/関連-counted pointer to a (言及/関連-counted) instance of the C++ jvmaccess::UnoVirtualMachine class, always 代表するd as a hyper integer. The pointer is 保証(人)d to be valid as long as the 言及/関連 to this XJavaVM is valid. Again, if the first 16 bytes of the processID do not match the 現在の 過程, or if the VM cannot be instantiated for whatever 推論する/理由, a 無効の any is returned.

The first form (returning a JNI JavaVM pointer) is おもに for backwards compatibility, new code should use the second form (returning a pointer to a jvmaccess::VirtualMachine) if it does not want to use the Java UNO 環境, and it should use the third form (returning a pointer to a jvmaccess::UnoVirtualMachine) if it wants to use the Java UNO 環境. 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 事実上の machine, that thread's 状況 ClassLoader (see java.lang.Thread.getContextClassLoader) will automatically be 始める,決める to a meaningful value.

Parameter processID
The 過程 ID of the 報知係's 過程, かもしれない 延長するd by a 17th byte of value 0 or 1.
Returns
On success, the any 含む/封じ込めるs a pointer 代表するd as long or hyper, さもなければ the any is 無効の.
isVMStarted
boolean
isVMStarted();

Description
returns true if the VM is started 首尾よく, さもなければ 誤った.
isVMEnabled
boolean
isVMEnabled();

Description
Returns true if the VM is enabled.

It is only possible to get the VM, if this method return 0.

最高の,を越す of Page

The ASF

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The ASF logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.