API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.script. ScriptEngineManager View Source
Author(s)
Mike Grogan
A. Sundararajan
Since
1.6
Version
Serial
Hierarchy
 Object
      ScriptEngineManager
Implements
Subclasses
Description
public class ScriptEngineManager
  The ScriptEngineManager implements a discovery and instantiation mechanism for ScriptEngine classes and also maintains a collection of key/value pairs storing state shared by all engines created by the Manager.
See also:   
Constructors
public ScriptEngineManager ()
  If the thread context ClassLoader can be accessed by the caller, then the effect of calling this constructor is the same as calling ScriptEngineManager(Thread.currentThread().getContextClassLoader()).
public ScriptEngineManager (ClassLoader loader)
  This constructor loads the implementations of ScriptEngineFactory visible to the given ClassLoader using the service provider mechanism.

If loader is null, the script engine factories that are bundled with the platform and that are in the usual extension directories (installed extensions) are loaded.
Methods
Hide/Show inherited methods
public Object get (String key)
  Gets the value for the specified key in the Global Scope
public Bindings getBindings ()
  getBindings returns the value of the globalScope field.
public ScriptEngine getEngineByExtension (String extension)
  Look up and create a ScriptEngine for a given extension.
public ScriptEngine getEngineByMimeType (String mimeType)
  Look up and create a ScriptEngine for a given mime type.
public ScriptEngine getEngineByName (String shortName)
  Looks up and creates a ScriptEngine for a given name.
public List<ScriptEngineFactory> getEngineFactories ()
  Returns an array whose elements are instances of all the ScriptEngineFactory classes found by the discovery mechanism.
public void put (String key, Object value)
  Sets the specified key/value pair in the Global Scope.
public void registerEngineExtension (String extension, ScriptEngineFactory factory)
  Registers a ScriptEngineFactory to handle an extension.
public void registerEngineMimeType (String type, ScriptEngineFactory factory)
  Registers a ScriptEngineFactory to handle a mime type.
public void registerEngineName (String name, ScriptEngineFactory factory)
  Registers a ScriptEngineFactory to handle a language name.
public void setBindings (Bindings bindings)
  setBindings stores the specified Bindings in the globalScope field.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar