@ConsumerType public interface TranslationServiceFactory
Modifier and Type | Field and Description |
---|---|
static 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,
String cloudConfigPath)
Deprecated.
since 2.4.0, use
#createTranslationService(TranslationMethod, String, Resource) instead.
Creates a new TranslationService object specific to this Factory. |
default TranslationService |
createTranslationService(TranslationConstants.TranslationMethod translationMethod,
String cloudConfigPath,
Resource resource)
Creates a new TranslationService object specific to this Factory.
|
Class<?> |
getServiceCloudConfigClass()
Gets the service Cloud Config Class.
|
String |
getServiceFactoryName()
Gets the service factory name.
|
List<TranslationConstants.TranslationMethod> |
getSupportedTranslationMethods()
Get the supported translation methods.
|
static final String PROPERTY_TRANSLATION_FACTORY
@Deprecated TranslationService createTranslationService(TranslationConstants.TranslationMethod translationMethod, String cloudConfigPath) throws TranslationException
#createTranslationService(TranslationMethod, String, Resource)
instead.
Creates a new TranslationService object specific to this Factory.translationMethod
- Specify which type of Translation service to create based on Translation MethodcloudConfigPath
- The path to cloud config file.TranslationException
- the translation exceptiondefault TranslationService createTranslationService(TranslationConstants.TranslationMethod translationMethod, String cloudConfigPath, Resource resource) throws TranslationException
translationMethod
- Specify which type of Translation service to create based on Translation MethodcloudConfigPath
- The path to cloud config file.resource
- Context resource to fetch configuration forTranslationException
- the translation exceptionList<TranslationConstants.TranslationMethod> getSupportedTranslationMethods()
String getServiceFactoryName()
Class<?> getServiceCloudConfigClass()
Copyright © 2010 - 2020 Adobe. All Rights Reserved