mhan810/liferay-portal — pull request #118 by matethurzo (2013-05-14 17:29:26+00:00)
Title: LPS-31462 Manual sending of messages

Hey Mike,

Here goes, the first portion of the messaging, this is very basic and consists of the ability to send out the messages manually.

There are a few details I'd like to share with you regarding this:
- originally Brian had concerns with the staging messaging so this PR is as minimal as it can be, I'd like to see if Brian is ok with merging this in, then I'm going to extends the framework with the rest.
- first the explained reason I have not added the different message levels feature yet. I know we were talking about it but one of Brian's concerns was that he was not sure if this is messaging or logging. In our case it's both, so I'd like this first portion to go in, then I can extends the framework with the levels and stuff.
- the others can work with the manual sending of messages in the meantime
- using of reflection in the factory - there might be a concern of using the reflection in the sender factory, but since the SMDHs are being produced once and put in the registry the factory will run once and that's all. that should be fast, and later on it's not going to use the reflection from time to time.
- using of the dummy sender - the framework is designed to send out messages of the status of export import and not else. but on the other hand it wouldn't be good if for a mistake the data handlers wouldn't be registered just because the message sender is not valid. I've added the dummy sender to prevent both scenarios - either sending false messages or failing to register the data handler for an independent reason like the message sender.
- the latest commit can be removed I've added that for you to see it in action - and also for me to test if everything is working properly.

Thanks,

Máté