public class InjectorCreationEvent extends RunPhaseEvent
Modules may be post-processed here (e.g. some special marker interface support may be implemented here).
| Constructor and Description |
|---|
InjectorCreationEvent(Options options,
io.dropwizard.setup.Bootstrap bootstrap,
io.dropwizard.Configuration configuration,
ConfigurationTree configurationTree,
io.dropwizard.setup.Environment environment,
java.util.List<com.google.inject.Module> modules,
java.util.List<com.google.inject.Module> overriding,
java.util.List<com.google.inject.Module> disabled,
java.util.List<com.google.inject.Module> ignored) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<com.google.inject.Module> |
getDisabled() |
java.util.List<com.google.inject.Module> |
getIgnored() |
java.util.List<com.google.inject.Module> |
getModules()
NOTE: if bindings analysis is enabled
(
GuiceyOptions.AnalyzeGuiceModules) then these modules were already
processed and repackaged (in order to remove disabled inner modules and extensions). |
java.util.List<com.google.inject.Module> |
getOverridingModules()
In contrast to normal modules, which are repackaged during bindings analysis, overriding modules are always
used as is and so instances may be modified (modules configuration called after this event).
|
getConfiguration, getConfigurationTree, getEnvironment, renderConfigurationBindingsgetBootstrapgetOptions, getTypepublic InjectorCreationEvent(Options options, io.dropwizard.setup.Bootstrap bootstrap, io.dropwizard.Configuration configuration, ConfigurationTree configurationTree, io.dropwizard.setup.Environment environment, java.util.List<com.google.inject.Module> modules, java.util.List<com.google.inject.Module> overriding, java.util.List<com.google.inject.Module> disabled, java.util.List<com.google.inject.Module> ignored)
public java.util.List<com.google.inject.Module> getModules()
GuiceyOptions.AnalyzeGuiceModules) then these modules were already
processed and repackaged (in order to remove disabled inner modules and extensions). This list is useful for
information only and any modifications to module instances makes no sense.public java.util.List<com.google.inject.Module> getOverridingModules()
public java.util.List<com.google.inject.Module> getDisabled()
public java.util.List<com.google.inject.Module> getIgnored()