public interface LoaderDelegate
このインタフェースは、
ExecutionControlのロード固有のサブセットを指定します。 ClassLoader実装のカプセル化に使用します。 - 導入されたバージョン:
- 9
-
メソッドのサマリー
修飾子と型メソッド説明voidaddToClasspath(String path) 実行クラスパスにパスを追加します。voidクラスが再定義されたことを通知します。Class<?>指定されたバイナリ名を持つクラスを探します。voidload(ExecutionControl.ClassBytecodes[] cbcs) 新しいクラスをロードしようとします。
-
メソッドの詳細
-
load
void load(ExecutionControl.ClassBytecodes[] cbcs) throws ExecutionControl.ClassInstallException, ExecutionControl.NotImplementedException, ExecutionControl.EngineTerminationException 新しいクラスをロードしようとします。- パラメータ:
cbcs- ロードするクラス名とバイトコード- 例外:
ExecutionControl.ClassInstallException- クラスのロード中に例外が発生しました。一部またはすべてがロードされませんでしたExecutionControl.NotImplementedException- 実装されていない場合ExecutionControl.EngineTerminationException- 実行エンジンが終了しました
-
classesRedefined
void classesRedefined(ExecutionControl.ClassBytecodes[] cbcs) クラスが再定義されたことを通知します。- パラメータ:
cbcs- 再定義されたクラス名とバイトコード
-
addToClasspath
void addToClasspath(String path) throws ExecutionControl.EngineTerminationException, ExecutionControl.InternalException 実行クラスパスにパスを追加します。- パラメータ:
path- 追加するパス- 例外:
ExecutionControl.EngineTerminationException- 実行エンジンが終了しましたExecutionControl.InternalException- 内部問題が発生しました
-
findClass
Class<?> findClass(String name) throws ClassNotFoundException 指定されたバイナリ名を持つクラスを探します。- パラメータ:
name- クラスのバイナリ名- 戻り値:
- クラス・オブジェクト
- 例外:
ClassNotFoundException- クラスが見つからなかった場合
-