Class DropwizardWeldHelper

java.lang.Object
org.sdase.commons.server.weld.DropwizardWeldHelper

public class DropwizardWeldHelper extends Object
Start a Dropwizard application with Weld support.

This is used to create the Application class inside the Weld Context, so that the Application, or instances produced by the Application, can be injected.

Example usage:

   public static void main(final String[] args) throws Exception {
     DropwizardWeldHelper.run(Application.class, args);
   }
 
  • Method Details

    • run

      public static <C extends io.dropwizard.core.Application<?>> void run(Class<C> applicationClass, String... arguments) throws Exception
      Throws:
      Exception