Package ru.vyarus.dropwizard.guice.debug
Class SharedStateDiagnostic
java.lang.Object
ru.vyarus.dropwizard.guice.module.lifecycle.GuiceyLifecycleAdapter
ru.vyarus.dropwizard.guice.module.lifecycle.UniqueGuiceyLifecycleListener
ru.vyarus.dropwizard.guice.debug.SharedStateDiagnostic
- All Implemented Interfaces:
GuiceyLifecycleListener
Prints shared state usage during application startup. Shows:
- What objects stored in state
- Who accessed stored objects (preserving access order)
- Misses (requesting not yet available values)
- Never set, but requested objects (including never called state value listeners).
- Since:
- 20.03.2025
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCalled after complete dropwizard startup.Methods inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.UniqueGuiceyLifecycleListener
equals, hashCodeMethods inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.GuiceyLifecycleAdapter
applicationRun, applicationShutdown, applicationStarting, applicationStopped, beforeInit, beforeRun, bundlesInitialized, bundlesResolved, bundlesStarted, classpathExtensionsResolved, commandsResolved, configurationHooksProcessed, dropwizardBundlesInitialized, extensionsInstalled, extensionsInstalledBy, extensionsResolved, initialized, injectorCreation, installersResolved, jerseyConfiguration, jerseyExtensionsInstalled, jerseyExtensionsInstalledBy, lookupBundlesResolved, manualExtensionsValidated, modulesAnalyzed, onEvent
-
Constructor Details
-
SharedStateDiagnostic
public SharedStateDiagnostic()
-
-
Method Details
-
applicationStarted
Description copied from class:GuiceyLifecycleAdapterCalled after complete dropwizard startup. Actually the same as jetty lifecycle started event (LifeCycle.Listener.lifeCycleStarted(org.eclipse.jetty.util.component.LifeCycle)), which is called after complete jetty startup.- Overrides:
applicationStartedin classGuiceyLifecycleAdapter- Parameters:
event- event object- See Also:
-