public interface TranslationServiceFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_TRANSLATION_FACTORY
Unique name of the service property indicating the particular implementation this factory provides, e.g.
|
Modifier and Type | Method and Description |
---|---|
TranslationService |
createTranslationService(TranslationConstants.TranslationMethod translationMethod,
java.lang.String cloudConfigPath)
Creates a new TranslationService object specific to this Factory.
|
java.lang.Class<?> |
getServiceCloudConfigClass()
Gets the service Cloud Config Class.
|
java.lang.String |
getServiceFactoryName()
Gets the service factory name.
|
java.util.List<TranslationConstants.TranslationMethod> |
getSupportedTranslationMethods()
Get the supported translation methods.
|
static final java.lang.String PROPERTY_TRANSLATION_FACTORY
TranslationService createTranslationService(TranslationConstants.TranslationMethod translationMethod, java.lang.String cloudConfigPath) throws TranslationException
translationMethod
- Specify which type of Translation service to create based on Translation MethodcloudConfigPath
- The path to cloud config file.TranslationException
- the translation exceptionjava.util.List<TranslationConstants.TranslationMethod> getSupportedTranslationMethods()
java.lang.String getServiceFactoryName()
java.lang.Class<?> getServiceCloudConfigClass()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"