Skip to content

getCloudConfigObjectFromPath deprecated in 6.4x #4

@florianmesserli

Description

@florianmesserli

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)

@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 = "";

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-

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions