Class MemoryLoaderDelegate

java.lang.Object
org.dellroad.jct.jshell.MemoryLoaderDelegate
All Implemented Interfaces:
LoaderDelegate

public class MemoryLoaderDelegate extends Object implements LoaderDelegate
A JShell LoaderDelegate that uses a MemoryClassLoader.

This class accepts --class-path components that refer to JAR file contents using the jar: URL syntax, e.g., jar:file:/some/dir/foo.jar!/BOOT-INF/lib/bar.jar. However, this is only partially useful because (a) you can't build a classpath with components that contain colon characters, and (b) the jshell tool rejects classpath components that aren't real files.