Class DiagnosticHook
- java.lang.Object
-
- ru.vyarus.dropwizard.guice.debug.hook.DiagnosticHook
-
- All Implemented Interfaces:
GuiceyConfigurationHook
public class DiagnosticHook extends java.lang.Object implements GuiceyConfigurationHook
Hook enables diagnostic logs. It is assumed to be used to enable diagnostic logs for compiled application with the system property:-Dguicey.hooks=diagnostic
.- Since:
- 16.08.2019
-
-
Constructor Summary
Constructors Constructor Description DiagnosticHook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(GuiceBundle.Builder builder)
Configuration is applied just after manual configuration (through bundle's builder in application class).-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ru.vyarus.dropwizard.guice.hook.GuiceyConfigurationHook
register
-
-
-
-
Method Detail
-
configure
public void configure(GuiceBundle.Builder builder)
Description copied from interface:GuiceyConfigurationHook
Configuration is applied just after manual configuration (through bundle's builder in application class).GuiceBundle.Builder
contains special methods for test support:- Generic disable:
GuiceBundle.Builder.disable(java.util.function.Predicate[])
- Direct disable* method, for example
GuiceBundle.Builder.disableExtensions(Class[])
- Guice bindings override:
GuiceBundle.Builder.modulesOverride(com.google.inject.Module...)
GuiceBundle.Builder.option(Enum, Object)
).All configuration items, registered with hook will be scoped as
GuiceyConfigurationHook
instead ofApplication
and so will be clearly distinguishable in configuration logs (GuiceBundle.Builder.printDiagnosticInfo()
).- Specified by:
configure
in interfaceGuiceyConfigurationHook
- Parameters:
builder
- just created bundle's builder
- Generic disable:
-
-