Hi Community,
i'm currenty migrating a CQ 5.4 application to AEM 6.1 and there's some confusion
regarding handling the (now deprecated class EventPropertiesMap.
...
new EventPropertiesMap(new PageEvent(next).toEvent()))
...
Adobes list of deprecated APIs (https://goo.gl/I20dXW) says "EventAdmin supports creating events with maps now as well"
What i understand is EventAdminPropertiesMap puts the events properties in a dictionary.
Can you please give me a hint how to substitute EventPropertiesMap?
Are there some kind of "migration patterns" or best practices available for the task of
migrating CQ 5.4 to AEM 6.1?
Kind regards,
Volker
(i'm just a humble AEM padawan)
Views
Replies
Total Likes
Are you referring to org.apache.sling.event.EventPropertiesMap?
https://docs.adobe.com/docs/en/aem/6-1/ref/javadoc/org/apache/sling/event/EventPropertiesMap.html
You are correct - that is depreciated. But i am not seeing the other class in the Javadocs for AEM 6.1.
https://docs.adobe.com/docs/en/aem/6-1/ref/javadoc/allclasses-noframe.html
I would log a support ticket for this. Looks like they marked something as depreciated - but did not update the Javadocs to help you move from the old Java to the new class.
Also - see if your code works - the depreciated message may be a mistake.
Views
Replies
Total Likes
I am in the process of upgrading to 6.2 and looks like EventPropertiesMap is totally removed in sling event 4.0.0. Please let me know if you have found an alternate way.
Thanks!
Views
Replies
Total Likes