Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WeldBundle

        public WeldBundle()
    • Method Detail

      • initialize

        public void initialize​(io.dropwizard.setup.Bootstrap<?> bootstrap)
        Specified by:
        initialize in interface io.dropwizard.ConfiguredBundle<io.dropwizard.Configuration>
      • run

        public void run​(io.dropwizard.Configuration configuration,
                        io.dropwizard.setup.Environment environment)
        Specified by:
        run in interface io.dropwizard.ConfiguredBundle<io.dropwizard.Configuration>