Package org.sdase.commons.server.weld
Class WeldBundle
- java.lang.Object
-
- org.sdase.commons.server.weld.WeldBundle
-
- All Implemented Interfaces:
io.dropwizard.ConfiguredBundle<io.dropwizard.Configuration>
public class WeldBundle extends java.lang.Object implements io.dropwizard.ConfiguredBundle<io.dropwizard.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
Constructors Constructor Description WeldBundle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(io.dropwizard.setup.Bootstrap<?> bootstrap)
void
run(io.dropwizard.Configuration configuration, io.dropwizard.setup.Environment environment)
-
-
-
Method Detail
-
initialize
public void initialize(io.dropwizard.setup.Bootstrap<?> bootstrap)
- Specified by:
initialize
in interfaceio.dropwizard.ConfiguredBundle<io.dropwizard.Configuration>
-
run
public void run(io.dropwizard.Configuration configuration, io.dropwizard.setup.Environment environment)
- Specified by:
run
in interfaceio.dropwizard.ConfiguredBundle<io.dropwizard.Configuration>
-
-