If we use uber-jar 6.4.x, the framework will not work.
How can we add the "resource" here?
@Override
public TranslationService createTranslationService(TranslationMethod translationMethod, String cloudConfigPath)
throws TranslationException {
log.trace("BootstrapTranslationServiceFactoryImpl.createTranslationService");
BootstrapTranslationCloudConfig bootstrapCloudConfg = (BootstrapTranslationCloudConfig) cloudConfigUtil
.getCloudConfigObjectFromPath(BootstrapTranslationCloudConfig.class, cloudConfigPath);
String dummyConfigId = "";
String dummyServerUrl = "";
String previewPath = "";
Hi,
In 6.4x, the method getCloudConfigObjectFromPath(Class,String) is deprecated, replaced by
Object getCloudConfigObjectFromPath(Resource, Class, String)
If we use uber-jar 6.4.x, the framework will not work.
How can we add the "resource" here?
https://github.com/Adobe-Marketing-Cloud/aem-translation-framework-bootstrap-connector/blob/aem640-crosslang/core/src/main/java/com/adobe/granite/translation/connector/bootstrap/core/impl/BootstrapTranslationServiceFactoryImpl.java
(line 87)
https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/reference-materials/diff-previous/changes/com.adobe.granite.translation.core.TranslationCloudConfigUtil.html
https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/reference-materials/javadoc/com/adobe/granite/translation/core/TranslationCloudConfigUtil.html#getCloudConfigObjectFromPath-org.apache.sling.api.resource.Resource-java.lang.Class-java.lang.String-