I want to use the lifecycle feature of Governator without calling Governator.createInjector
because I already have some wrapper around my Guice injector and switching the two will be rather tricky.
The documentation, says the following:
Governator provides a simple wrapper to Guice's Guice.createInjector through which lifecycle management is added.
Later, examples are given as alternatives to awaitTermination()
, including in-injector possibilities.
This seems to indicate that I have the possibility to not use Governator.createInjector
at all.
If this is true, how can I use Governator's lifecycle feature using only modules? Which modules do I have to load? LifecycleModule
seems a no-brainer, but are there others?