public class WeldBundle
extends java.lang.Object
implements io.dropwizard.ConfiguredBundle<io.dropwizard.Configuration>
The use of the Bundle is optional, but the use of the DropwizardWeldHelper
is
required.
Example usage:
public void initialize(final Bootstrap<AppConfiguration> bootstrap) {
bootstrap.addBundle(new WeldBundle());
}
Constructor and Description |
---|
WeldBundle() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(io.dropwizard.setup.Bootstrap<?> bootstrap) |
void |
run(io.dropwizard.Configuration configuration,
io.dropwizard.setup.Environment environment) |
public void initialize(io.dropwizard.setup.Bootstrap<?> bootstrap)
initialize
in interface io.dropwizard.ConfiguredBundle<io.dropwizard.Configuration>
public void run(io.dropwizard.Configuration configuration, io.dropwizard.setup.Environment environment)
run
in interface io.dropwizard.ConfiguredBundle<io.dropwizard.Configuration>