dotCMS/dotCMS — pull request #63 by mastrogiovanni (2012-04-02 15:16:34+00:00)
Title: Issue 14 osgi

- What is done and How it works

I integrated Felix library to have OSGI environment (library felix).
Felix start on dotCMS startup by mean of a listener and use as default plugins all jar included in dotCMS/felix/bundle directory (console, standard runtime, command interface, automatic plugin loader).
On startup dotCMS save the OSGI bundle inside the singleton class HostActivator.
This class can be used to access to all OSGI environment from inside dotCMS.
In particular we register as service the ToolboxManager (and we added methods to add and remove ViewTools).
Moreover I registered also WorkFlowAPIImpl life service in OSGI environement and I added methods to add and remove WorkFlowActionlets

I provided two OSGI plugins (eclipse projects) to test the OSGI environement:

- an OSGI ViewTool add itself to the registered service on OSGI startup (when jar is added to the felix "load" directory).
- an OSGI WorkFlowActionlet that add the actionlet to the list on startup.

Both plugins have no ant file: I create an eclipse project by including the proper plugin directory. Both has a descriptor that compile and put the jar inside dotCMS/felix/load directory.