public interface LoaderDelegate
ExecutionControl
. For use in encapsulating the ClassLoader
implementation.Modifier and Type | Method | Description |
---|---|---|
void |
addToClasspath |
Adds the path to the execution class path. |
void |
classesRedefined |
Notify that classes have been redefined. |
Class |
findClass |
Finds the class with the specified binary name. |
void |
load |
Attempts to load new classes. |
void load(ExecutionControl.ClassBytecodes[] cbcs) throws ExecutionControl.ClassInstallException, ExecutionControl.NotImplementedException, ExecutionControl.EngineTerminationException
cbcs
- the class name and bytecodes to loadExecutionControl.ClassInstallException
- exception occurred loading the classes, some or all were not loadedExecutionControl.NotImplementedException
- if not implementedExecutionControl.EngineTerminationException
- the execution engine has terminatedvoid classesRedefined(ExecutionControl.ClassBytecodes[] cbcs)
cbcs
- the class names and bytecodes that have been redefinedvoid addToClasspath(String path) throws ExecutionControl.EngineTerminationException, ExecutionControl.InternalException
path
- the path to addExecutionControl.EngineTerminationException
- the execution engine has terminatedExecutionControl.InternalException
- an internal problem occurredClass<?> findClass(String name) throws ClassNotFoundException
name
- the binary name of the classClassNotFoundException
- if the class could not be found
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/jdk.jshell/jdk/jshell/execution/LoaderDelegate.html