Class RunPhaseEvent
java.lang.Object
ru.vyarus.dropwizard.guice.module.lifecycle.event.GuiceyLifecycleEvent
ru.vyarus.dropwizard.guice.module.lifecycle.event.ConfigurationPhaseEvent
ru.vyarus.dropwizard.guice.module.lifecycle.event.RunPhaseEvent
- Direct Known Subclasses:
BeforeRunEvent,BundlesStartedEvent,ExtensionsResolvedEvent,InjectorCreationEvent,InjectorPhaseEvent,ManualExtensionsValidatedEvent,ModulesAnalyzedEvent
Base class for events, started after
GuiceBundle.run(Configuration, Environment)
phase. Most events will appear before (Application.run(Configuration, Environment)).- Since:
- 19.04.2018
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends io.dropwizard.core.Configuration>
Tio.dropwizard.core.setup.EnvironmentConfiguration report shows configuration binding paths.Methods inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.event.ConfigurationPhaseEvent
getBootstrapMethods inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.event.GuiceyLifecycleEvent
getOptions, getSharedState, getStats, getType
-
Constructor Details
-
RunPhaseEvent
Create event.- Parameters:
type- event typecontext- event context
-
-
Method Details
-
getConfiguration
public <T extends io.dropwizard.core.Configuration> T getConfiguration()- Type Parameters:
T- configuration type- Returns:
- configuration object
-
getConfigurationTree
- Returns:
- introspected configuration object
-
getEnvironment
public io.dropwizard.core.setup.Environment getEnvironment()- Returns:
- environment object
-
renderConfigurationBindings
Configuration report shows configuration binding paths.- Parameters:
config- configuration bindings report configuration- Returns:
- rendered report
- See Also:
-