- All Known Implementing Classes:
FailOverExecutionControlProvider
,JdiExecutionControlProvider
,LocalExecutionControlProvider
public interface ExecutionControlProvider
The provider used by JShell to generate the execution engine needed to
evaluate Snippets. Alternate execution engines can be created by
implementing this interface, then configuring JShell with the provider or
the providers name and parameter specifier.
- Since:
- 9
-
Method Summary
Modifier and Type Method Description default Map<String,String>
defaultParameters()
Create and return the default parameter map for thisExecutionControlProvider
.ExecutionControl
generate(ExecutionEnv env, Map<String,String> parameters)
Create and return theExecutionControl
instance.String
name()
The unique name of thisExecutionControlProvider
.
-
Method Details
-
name
String name()The unique name of thisExecutionControlProvider
. The name must be a sequence of characters from the Basic Multilingual Plane which areCharacter.isJavaIdentifierPart(char)
.- Returns:
- the ExecutionControlProvider's name
-
defaultParameters
Create and return the default parameter map for thisExecutionControlProvider
. The map can optionally be modified; Modified or unmodified it can be passed togenerate(jdk.jshell.spi.ExecutionEnv, java.util.Map)
.- Returns:
- the default parameter map
-
generate
Create and return theExecutionControl
instance.
-