Package org.sdase.commons.server.weld
Class WeldBundle
java.lang.Object
org.sdase.commons.server.weld.WeldBundle
- All Implemented Interfaces:
io.dropwizard.core.ConfiguredBundle<io.dropwizard.core.Configuration>
public class WeldBundle
extends Object
implements io.dropwizard.core.ConfiguredBundle<io.dropwizard.core.Configuration>
Dropwizard Bundle that adds a listener for using Injection inside of servlets.
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(io.dropwizard.core.setup.Bootstrap<?> bootstrap) void
run
(io.dropwizard.core.Configuration configuration, io.dropwizard.core.setup.Environment environment)
-
Constructor Details
-
WeldBundle
public WeldBundle()
-
-
Method Details
-
initialize
public void initialize(io.dropwizard.core.setup.Bootstrap<?> bootstrap) - Specified by:
initialize
in interfaceio.dropwizard.core.ConfiguredBundle<io.dropwizard.core.Configuration>
-
run
public void run(io.dropwizard.core.Configuration configuration, io.dropwizard.core.setup.Environment environment) - Specified by:
run
in interfaceio.dropwizard.core.ConfiguredBundle<io.dropwizard.core.Configuration>
-