public interface LoaderDelegate
ExecutionControl
. For use in encapsulating the
ClassLoader
implementation.Modifier and Type | Method and Description |
---|---|
void |
addToClasspath(String path)
Adds the path to the execution class path.
|
Class<?> |
findClass(String name)
Finds the class with the specified binary name.
|
void |
load(ExecutionControl.ClassBytecodes[] cbcs)
Attempts to load new classes.
|
void |
setClasspath(String path)
Sets the execution class path to the specified path.
|
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 addToClasspath(String path) throws ExecutionControl.EngineTerminationException, ExecutionControl.InternalException
path
- the path to addExecutionControl.EngineTerminationException
- the execution engine has terminatedExecutionControl.InternalException
- an internal problem occurredvoid setClasspath(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
Copyright © 2015, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-08-10-220919.robert.dev