RCP with Guice
Sébastien Letélié | 27 novembre 2007To make my RCP application a little SOA oriented i choose Guice. It’s easy and quick to implement. To call a service you use :
Guice.createInjector().getInstance(aClass);
aClass is not a service but an object using injected services, then you can’t create a ViewPart including service, you must use an intermediate object : a controller.
For example you have a ViewPart (MissionViewPart), a controller (MissionViewController) and a service (MissionService). The declaration look like this :
Lire la suite »









