I
- the type of the inputO
- the type of the outputpublic interface TranslatorFactory<I,O>
Translator
instances.Modifier and Type | Method and Description |
---|---|
Translator<I,O> |
newInstance(Model model,
java.util.Map<java.lang.String,java.lang.Object> arguments)
Returns a new instance of the
Translator class. |
Translator<I,O> newInstance(Model model, java.util.Map<java.lang.String,java.lang.Object> arguments) throws TranslateException
Translator
class.model
- the Model
that uses the Translator
arguments
- the configurations for a new Translator
instanceTranslator
classTranslateException
- if failed to create Translator instance