Class JShellShellSession

All Implemented Interfaces:
ConsoleSession<Shell,ShellRequest>, ShellSession

public class JShellShellSession extends AbstractShellSession
A ShellSession that builds and executes a JShell instance.

The associated JShell instance can be customized in two ways:

  • Override createBuilder() to customize the JavaShellToolBuilder used to create the JShell.
  • Override modifyJShellParams() to customize the flags and parameters passed to JShell itself (these are the same as accepted by the jshell(1) command line tool). By default, the parameters passed are the the parameters given on the command line.

During execution, instances make themselves available to the current thread via getCurrent().

  • Field Details

    • localContextClassLoader

      protected ClassLoader localContextClassLoader
  • Constructor Details

  • Method Details