C
- configuration typepublic abstract class DropwizardAwareModule<C extends io.dropwizard.Configuration> extends com.google.inject.AbstractModule implements EnvironmentAwareModule, BootstrapAwareModule<C>, ConfigurationAwareModule<C>
Constructor and Description |
---|
DropwizardAwareModule() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
appPackage() |
protected io.dropwizard.setup.Bootstrap<C> |
bootstrap() |
protected C |
configuration() |
protected io.dropwizard.setup.Environment |
environment() |
void |
setBootstrap(io.dropwizard.setup.Bootstrap<C> bootstrap)
Method will be called just before injector initialization.
|
void |
setConfiguration(C configuration)
Method will be called just before injector initialization.
|
void |
setEnvironment(io.dropwizard.setup.Environment environment)
Method will be called just before injector initialization.
|
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
public void setConfiguration(C configuration)
ConfigurationAwareModule
setConfiguration
in interface ConfigurationAwareModule<C extends io.dropwizard.Configuration>
configuration
- configuration objectpublic void setBootstrap(io.dropwizard.setup.Bootstrap<C> bootstrap)
BootstrapAwareModule
setBootstrap
in interface BootstrapAwareModule<C extends io.dropwizard.Configuration>
bootstrap
- bootstrap objectpublic void setEnvironment(io.dropwizard.setup.Environment environment)
EnvironmentAwareModule
setEnvironment
in interface EnvironmentAwareModule
environment
- environment objectprotected io.dropwizard.setup.Bootstrap<C> bootstrap()
protected C configuration()
protected io.dropwizard.setup.Environment environment()
protected java.lang.String appPackage()