AEM 6.5 Deprecated API | Community
Skip to main content
Level 2
Jun 17, 2019 12:17 PM UTC
Solved

AEM 6.5 Deprecated API

Hi all,

starting from AEM 6.5 Adobe provides two types of uber-jar: regular and with deprecated api. Looking at AEM docs I can see that com.day.cq.dam.scene7,Scene7Service has been marked as deprecated and we're instructed to use com.day.cq.dam.scene7.api.Scene7Service.

However neither of packages listed in uber-jar-apis (whereas I expected com.day.cq.dam.scene7.api.Scene7Service to be there). Nevertheless it could be found in uber-jar-apis-with-deprecations. Which makes me wonder why would Adobe deprecate actual API.

Could anyone suggest what's been marked as the replacement though?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
aemmarc2Accepted solution
Employee
Jun 17, 2019 12:41 PM UTC

As I understand it, the UberJar went through some refactoring in 6.5 to clear up some tech-debt and API-leakages. It was done for security reasons essentially.

2 replies

Employee
Aug 8, 2019 5:27 PM UTC

The Scene7 API jar was included in the deprecated jar package because it contains deprecated methods.  For the foreseeable future, the com.day.cq.dam.scene7.api.Scene7Service package is the correct one to use.

Translate
aemmarc2Accepted solution
Employee
Jun 17, 2019 12:41 PM UTC

As I understand it, the UberJar went through some refactoring in 6.5 to clear up some tech-debt and API-leakages. It was done for security reasons essentially.

Translate