public interface LoaderDelegate
このインタフェースは、
ExecutionControl
のロード固有のサブセットを指定します。 ClassLoader
実装のカプセル化に使用します。 - 導入されたバージョン:
- 9
-
メソッドのサマリー
修飾子と型 メソッド 説明 void
addToClasspath(String path)
実行クラスパスにパスを追加します。void
classesRedefined(ExecutionControl.ClassBytecodes[] cbcs)
クラスが再定義されたことを通知します。Class<?>
findClass(String name)
指定されたバイナリ名を持つクラスを探します。void
load(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
- クラスが見つからなかった場合
-