org.apache.batik.refimpl.script
Class ConcreteInterpreterPool
java.lang.Object
|
+--org.apache.batik.refimpl.script.ConcreteInterpreterPool
- All Implemented Interfaces:
- InterpreterPool
- public class ConcreteInterpreterPool
- extends java.lang.Object
- implements InterpreterPool
The reference implementation of the InterpreterPool
interface.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConcreteInterpreterPool
public ConcreteInterpreterPool()
- Builds an instance of
ConcreteInterpreterPool
.
ConcreteInterpreterPool
public ConcreteInterpreterPool(Document doc)
- Builds an instance of
ConcreteInterpreterPool
that
will deal with the given Document
.
getInterpreter
public Interpreter getInterpreter(java.lang.String language)
- Returns a unique instance of an implementation of
Interpreter
interface that match the given language.
It returns null
if the interpreter cannot be build.
- Specified by:
getInterpreter
in interface InterpreterPool
- Parameters:
language
- a mimeType like string describing the language to use
(i.e. "text/ecmascript" for ECMAScript interpreter).document
- the Document instance
.
putInterpreterFactory
public void putInterpreterFactory(java.lang.String language,
InterpreterFactory factory)
- Registers an
InterpreterFactory
for the given
language.
- Specified by:
putInterpreterFactory
in interface InterpreterPool
- Parameters:
language
- the language for which the factory is registered.
removeInterpreterFactory
public void removeInterpreterFactory(java.lang.String language)
- Unregisters the
InterpreterFactory
of the given
language.
- Specified by:
removeInterpreterFactory
in interface InterpreterPool
- Parameters:
language
- the language for which the factory should
be unregistered.
Copyright © 2000 Apache Software Foundation. All Rights Reserved.