GPII/universal — pull request #5 by kaspermarkus (2012-03-22 10:22:11+00:00)
Title: Updated LaunchHandler

Hey everyone,

So I got the launchHandler to a state where it's vaguely resembling something worthy of a pull request.

The main changes are:
- Whatever is returned by the call to the launchHandler (when 'starting' the app) is added to the 'stop' payload - that is, the payload that is sent to the launchHandler on stop
- LaunchHandler no longer mimics a dataSource - meaning I removed the get and set (and delete) functions, since this didn't fit into the model of a type (function-name) in the payload that is called.
- I'm using StringTemplate for the replacement of PID and the actual replacement takes place in the LaunchHandler, NOT in the configuration manager
- Finally - a terrible ugly thing: To be able to test this stuff, I needed to throw a listener on the child-process to check that it was actually killed on my kill command. To achieve this, I'm currently returning the actual child process object from Launch Manager - even when I'm not testing.. Any suggestions on how to avoid this is very welcome!