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?
(i'm just a humble AEM padawan)
Are you referring to org.apache.sling.event.EventPropertiesMap?
You are correct - that is depreciated. But i am not seeing the other class in the Javadocs for AEM 6.1.
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.
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.