
@Service @Transactional(propagation=REQUIRED) public final class TranslationServiceImpl extends Object implements TranslationService
| Constructor and Description |
|---|
TranslationServiceImpl()
Instantiates a new translation service impl.
|
| Modifier and Type | Method and Description |
|---|---|
String |
translate(String translateText,
String targetLanguage)
Translate.
|
public TranslationServiceImpl()
public String translate(String translateText, String targetLanguage) throws TranslationException
TranslationServicetranslate in interface TranslationServicetranslateText - the translate texttargetLanguage - the target languageTranslationException - the translation exceptionCopyright © 2010–2017 www.hack23.com. All rights reserved.