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,?> arguments)
Returns a new instance of the
Translator class. |
Translator<I,O> newInstance(Model model, java.util.Map<java.lang.String,?> arguments) throws TranslateException
Translator class.model - the Model that uses the Translatorarguments - the configurations for a new Translator instanceTranslator classTranslateException - if failed to create Translator instance