juliocamarero/liferay-portal — pull request #754 by matethurzo (2012-11-17 10:49:39+00:00)
Title: LPS-26761 Adding StagedModelDataHandlerRegistry framework

Hi Julio,

This is the second PR regarding the staging environment changes. You should the review with this one first: https://github.com/juliocamarero/liferay-portal/pull/753

This pull request contains a registry framework for the staged model data handlers. The pattern is the same what we already have for the trash handlers, with slight modifications.

There is one exact point I'd like to highlight: we are using reflection to retrieve the entity class name from the data handler. The reason is that we will need that mapping later on so we cannot map the data handler to the data handler class name itself, it has to be the entity class name.

Besides that, this is pretty straightforward I'd say.

Thanks,

Máté

cc-ing @mhan810, @KocsisDaniel