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 Details

    • WeldBundle

      public WeldBundle()
  • Method Details

    • initialize

      public void initialize(io.dropwizard.core.setup.Bootstrap<?> bootstrap)
      Specified by:
      initialize in interface io.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 interface io.dropwizard.core.ConfiguredBundle<io.dropwizard.core.Configuration>