Annotation Interface EagerSingleton
A class with this annotation will automatically be eagerly bound in the guice environment.
Unless
Unless
inTests()
is set to true, this will be ignored within environments built for unit tests.-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
If true, the binding will be marked as an eager singleton even during testing.
-
Element Details
-
inTests
boolean inTestsIf true, the binding will be marked as an eager singleton even during testing.- Returns:
- Default:
- false
-