-
Type:
Feature Request
-
Status: Closed
-
Priority:
Minor
-
Resolution: Implemented in Platform
-
Affects Version/s: 6.0.6 GA
-
Fix Version/s: None
-
Component/s: Staging, Staging > Export/Import
-
Labels:None
The PortletDataHandler framework is somewhat hard to extend because although you can override the data handlers via liferay-portlet-ext.xml, some data handler implementations have direct references to other data handlers.
Example, if you wanted to override the DLPortletDataHandlerImpl, you may find yourself having to override the JournalPortletDataHandlerImpl as well because the latter has direct references to the former (because many of the methods are static).
Some improvements could be to have a registry for the data handlers from which to retrieve the handler for a certain portlet (as opposed to having a direct dependency) and replace the static methods with instance methods (of course that means the PortletDataHandler interface will need to have more generic methods).