Governator is a library of extensions and utilities that enhance Google Guice to provide: classpath scanning and automatic binding, lifecycle management, configuration to field mapping, field validation and parallelized object warmup.
Questions tagged [governator]
6 questions
4
votes
2 answers
How to inject dependecies using Governator within TestNG test cases?
I'm working on a test automation framework which use TestNG. I decided to use Dependency Injection pattern in order to implement more readable, reusable page objects and tests.
I've chosen Google Guice due to TestNG provides built-in support to…

eHayik
- 2,981
- 1
- 21
- 33
2
votes
0 answers
Netflix Governator configure with Archaius Configuration Provider
I want to configure a governator-powered project, with the Archaius Configuration Provider. I am using Governator version 1.10.5.
I had a look on how to configure an ArchaiusConfigurationProvider, which is described here.
My use case is that I…

cristi.calugaru
- 571
- 10
- 22
1
vote
2 answers
Guice load properties from System Properties
I am using Guice without any spring dependencies.
Is there way to get System properties passed to java (java -Dfoo="asda") in Module.
The goal is to load properties from outside of jar file.
Most examples so far use preexisting properties…

Yerzhan Kaskabay
- 25
- 5
1
vote
0 answers
Managing lifecycle, using Netflix Governator, of java object without Annotations
Is there a mechanism for me to manage the lifecycle of java objects using Netflix governator without the @PostConstruct and @Predestory annotations.
I would like to manage the lifecycle of objects within a library that I do not have the power to…

pranavmalhotra
- 152
- 7
1
vote
1 answer
java.lang.NoClassDefFoundError: javax/annotation/PostConstruct on JBoss and JAAS
We have a Guice based web application that we deploy to JBoss EAP 6.4.0. This application uses Netflix Governator library, which provides support for the PostConstruct annotation.
This application starts without any problem on JBoss, until we add…

Guillaume Lucazeau
- 419
- 5
- 15
1
vote
0 answers
Governator's lifecycle feature without calling Governator.createInjector
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…

Olivier Grégoire
- 33,839
- 23
- 96
- 137