NSJavaClassesForBundle

Loads the Java classes located in the specified bundle. 指定されたバンドルの中のロードされたJavaクラスをロードします。

Declaration 宣言

NSArray * NSJavaClassesForBundle (
   NSBundle *bundle,
   BOOL usesyscl,
   id *vm
);

Overview 概要

Loads and returns the Java classes in the specified bundle. If the Java virtual machine is not loaded, load it first. A reference to the Java virtual machine is returned in the vm parameter. You can pass nil for the vm parameter if you do not want this information. Pass NO for usesyscl if you want to use a new instance of the class loader to load the classes; otherwise, the system can reuse an existing instance of the class loader. If you pass NO for usesyscl, the new class loader will be released when you are done with it; otherwise, the class loader will be cached for use next time. 指定されたバンドルの中のJavaクラスをロードして返します。Javaバーチャルマシーンがロードされないならば、それを最初にロードします。Javaバーチャルマシンへの参照は、vmパラメータにおいて返されます。あなたは、nilvmパラメータに渡すことができます、もしあなたがこの情報を望まないならば。NOusesysclに渡してください、もしあなたがクラスローダーの新しいインスタンスを使ってクラスをロードしたいならば;そうでなければ、システムはクラスローダーの既存のインスタンスを再利用できます。あなたがNOusesysclに渡すならば、新しいクラスローダーは解放されるでしょう、あなたがそれと関係を絶つ時に;そうでなければ、クラスローダーは次回の使用のためにキャッシュされます。

See Also 参照

Java Setup Functions Java設定関数