public class TestableConsolePluginAcceptor extends Object implements PluginAcceptor
| Modifier and Type | Field and Description | 
|---|---|
| static String | ENVIRONMENT_IO | 
| static String | ENVIRONMENT_NAME | 
| static String | ENVIRONMENT_SHELL | 
| Constructor and Description | 
|---|
| TestableConsolePluginAcceptor() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addBinding(String key,
          Object val)Add a variable binding for the plugin host. | 
| void | addImports(Set<String> importStatements)If the  PluginAcceptorimplements theDependencyManagerinterface it will try to import the
 specified import statements. | 
| Map<String,Object> | environment()Returns a map of implementation specific variables that can be referenced by the plugin. | 
| Object | eval(String script)Evaluate a script in the  PluginAcceptor. | 
| Map<String,Object> | getBindings()Gets the list of bindings from the plugin host. | 
public static final String ENVIRONMENT_NAME
public static final String ENVIRONMENT_SHELL
public static final String ENVIRONMENT_IO
public void addImports(Set<String> importStatements)
PluginAcceptorPluginAcceptor implements the DependencyManager interface it will try to import the
 specified import statements.addImports in interface PluginAcceptorpublic void addBinding(String key, Object val)
PluginAcceptoraddBinding in interface PluginAcceptorpublic Map<String,Object> getBindings()
PluginAcceptorgetBindings in interface PluginAcceptorpublic Object eval(String script) throws ScriptException
PluginAcceptorPluginAcceptor.eval in interface PluginAcceptorScriptExceptionpublic Map<String,Object> environment()
PluginAcceptorPluginAcceptor implementations for the variables
 that they pass, as they may provide important information useful to the plugin itself.environment in interface PluginAcceptorCopyright © 2013–2018 Apache Software Foundation. All rights reserved.