com.hack23.cia.service.impl
Class TranslatorServiceImpl
java.lang.Object
com.hack23.cia.service.impl.TranslatorServiceImpl
- All Implemented Interfaces:
- TranslatorService
@Service(value="TranslatorService")
public class TranslatorServiceImpl
- extends Object
- implements TranslatorService
The Class TranslatorServiceImpl.
Method Summary |
String |
getTranslation(String text,
com.google.api.translate.Language from,
com.google.api.translate.Language to)
Gets the translation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TranslatorServiceImpl
public TranslatorServiceImpl()
getTranslation
@Transactional
public String getTranslation(String text,
com.google.api.translate.Language from,
com.google.api.translate.Language to)
- Description copied from interface:
TranslatorService
- Gets the translation.
- Specified by:
getTranslation
in interface TranslatorService
- Parameters:
text
- the textfrom
- the fromto
- the to
- Returns:
- the translation
Copyright © 2008-2011 www.hack23.com. All Rights Reserved.