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
public class SharedStateDiagnostic extends UniqueGuiceyLifecycleListener
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 Constructor Description SharedStateDiagnostic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplicationStarted(ApplicationStartedEvent event)Called after complete dropwizard startup.-
Methods inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.UniqueGuiceyLifecycleListener
equals, hashCode
-
Methods inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.GuiceyLifecycleAdapter
applicationRun, applicationShutdown, applicationStopped, beforeInit, beforeRun, bundlesInitialized, bundlesResolved, bundlesStarted, classpathExtensionsResolved, commandsResolved, configurationHooksProcessed, dropwizardBundlesInitialized, extensionsInstalled, extensionsInstalledBy, extensionsResolved, initialized, injectorCreation, installersResolved, jerseyConfiguration, jerseyExtensionsInstalled, jerseyExtensionsInstalledBy, lookupBundlesResolved, manualExtensionsValidated, modulesAnalyzed, onEvent
-
-
-
-
Method Detail
-
applicationStarted
protected void applicationStarted(ApplicationStartedEvent event)
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:
GuiceyLifecycle.ApplicationStarted
-
-