org.apache.batik.script
Interface InterpreterPool
- All Known Implementing Classes:
- ConcreteInterpreterPool
- public interface InterpreterPool
An interface allowing to create/query an Interpreter
corresponding to a particular language.
Method Summary |
Interpreter |
getInterpreter(java.lang.String language)
Should return a unique instance of an implementation of
Interpreter interface that match the given language. |
void |
putInterpreterFactory(java.lang.String language,
InterpreterFactory factory)
Should allow to register an InterpreterFactory for the
given language. |
void |
removeInterpreterFactory(java.lang.String language)
Should allow to unregister the InterpreterFactory of the
given language. |
getInterpreter
public Interpreter getInterpreter(java.lang.String language)
- Should return a unique instance of an implementation of
Interpreter
interface that match the given language.
- 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)
- Should allow to register an
InterpreterFactory
for the
given language.
- Parameters:
language
- the language for which the factory is registered.factory
- the InterpreterFactory
that will allow to
create a interpreter for the language.
removeInterpreterFactory
public void removeInterpreterFactory(java.lang.String language)
- Should allow to unregister the
InterpreterFactory
of the
given language.
- Parameters:
language
- the language for which the factory should be
unregistered.
Copyright © 2000 Apache Software Foundation. All Rights Reserved.