Class ManualExtensionsValidatedEvent
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
ru.vyarus.dropwizard.guice.module.lifecycle.event.configuration.ManualExtensionsValidatedEvent
Called when all manually registered extension classes are recognized by installers (validated). But only
extensions, known to be enabled at that time are actually validated (this way it is possible to exclude
extensions for non existing installers). Provides list of all extensions registered manually (including disabled)
and actually validated extensions (known to be enabled at the time of validation).
Called only if at least one manual extension registered.
May be used for consultation only. Extension instances are not yet available (guice context is not created).
- Since:
- 01.09.2019
-
Constructor Summary
ConstructorsConstructorDescriptionManualExtensionsValidatedEvent(EventsContext context, List<Class<?>> extensions, List<Class<?>> validated) Create event. -
Method Summary
Modifier and TypeMethodDescriptionNote that some of these extensions may still be disabled in the run phase.Methods inherited from class ru.vyarus.dropwizard.guice.module.lifecycle.event.RunPhaseEvent
getConfiguration, getConfigurationTree, getEnvironment, renderConfigurationBindingsMethods 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
-
ManualExtensionsValidatedEvent
public ManualExtensionsValidatedEvent(EventsContext context, List<Class<?>> extensions, List<Class<?>> validated) Create event.- Parameters:
context- event contextextensions- all extensionsvalidated- manual extensions
-
-
Method Details
-
getExtensions
- Returns:
- all detected binding extensions (including possibly disabled in the future)
-
getValidated
Note that some of these extensions may still be disabled in the run phase.- Returns:
- actually validated extensions (known to be enabled at the time of validation)
-