@Inject public StandardScriptEngineManager(){
  final RhinoScriptEngineFactory rhino=new RhinoScriptEngineFactory(new ObservedContextFactory(this));
  rhino.setOptimisationLevel(RhinoScriptEngineFactory.INTERPRETED);
  final ClassShutter sandbox=new RhinoSandboxClassShutter(System.getSecurityManager(),Collections.<Pattern>emptyList(),Collections.<Pattern>emptyList());
  rhino.setClassShutter(sandbox);
  final GroovyEngineFactory groovy=new GroovyEngineFactory();
  groovy.setSandbox(new GroovySandboxValueFilter(sandbox));
  addConfigurationListener(new SandboxConfigurationListener(rhino,groovy));
  registerEngineName(SupportedScriptingLanguage.JAVASCRIPT_ENGINE_NAME,rhino);
  registerEngineName(SupportedScriptingLanguage.GROOVY_ENGINE_NAME,groovy);
  setConfiguration(DEFAULT_CONFIGURATION);
}

@ Inject public StandardScriptEngineManager ( ) { final RhinoScriptEngineFactory rhino = new RhinoScriptEngineFactory ( new ObservedContextFactory ( this ) ) ; rhino . setOptimisationLevel ( RhinoScriptEngineFactory . INTERPRETED ) ; final ClassShutter sandbox = new RhinoSandboxClassShutter ( System . getSecurityManager ( ) , Collections . < Pattern > emptyList ( ) , Collections . < Pattern > emptyList ( ) ) ; rhino . setClassShutter ( sandbox ) ; final GroovyEngineFactory groovy = new GroovyEngineFactory ( ) ; groovy . setSandbox ( new GroovySandboxValueFilter ( sandbox ) ) ; addConfigurationListener ( new SandboxConfigurationListener ( rhino , groovy ) ) ; registerEngineName ( SupportedScriptingLanguage . JAVASCRIPT_ENGINE_NAME , rhino ) ; registerEngineName ( SupportedScriptingLanguage . GROOVY_ENGINE_NAME , groovy ) ; setConfiguration ( DEFAULT_CONFIGURATION ) ; }
constructs and configures the engine manager .
