1 package org
.argeo
.cms
.jshell
;
3 import jdk
.jshell
.execution
.DirectExecutionControl
;
4 import jdk
.jshell
.execution
.LoaderDelegate
;
5 import jdk
.jshell
.spi
.ExecutionControl
;
6 import jdk
.jshell
.spi
.ExecutionEnv
;
8 /** Custom {@link ExecutionControl}. */
9 public class CmsExecutionControl
extends DirectExecutionControl
{
10 private final ExecutionEnv executionEnv
;
12 public CmsExecutionControl(ExecutionEnv executionEnv
, LoaderDelegate loaderDelegate
) {
13 super(loaderDelegate
);
14 this.executionEnv
= executionEnv
;
19 protected void clientCodeEnter() throws InternalException
{
20 super.clientCodeEnter();
24 protected void clientCodeLeave() throws InternalException
{
25 super.clientCodeLeave();
26 executionEnv
.userOut().flush();