public class DiagnosticHook extends java.lang.Object implements GuiceyConfigurationHook
-Dguicey.hooks=diagnostic.| Constructor and Description |
|---|
DiagnosticHook() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(GuiceBundle.Builder builder)
Configuration is applied just after manual configuration (through bundle's builder in application class).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterpublic void configure(GuiceBundle.Builder builder)
GuiceyConfigurationHook
GuiceBundle.Builder contains special methods for test support:
GuiceBundle.Builder#disable(java.util.function.Predicate[])
GuiceBundle.Builder#disableExtensions(Class[])GuiceBundle.Builder#modulesOverride(com.google.inject.Module...)GuiceBundle.Builder#option(Enum, Object)).
All configuration items, registered with hook will be scoped as GuiceyConfigurationHook
instead of Application and so will be clearly distinguishable in configuration logs
(GuiceBundle.Builder#printDiagnosticInfo()).
configure in interface GuiceyConfigurationHookbuilder - just created bundle's builderfor more information