Class DropwizardWeldHelper


  • public class DropwizardWeldHelper
    extends java.lang.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 Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <C extends io.dropwizard.Application>
      void
      run​(java.lang.Class<C> applicationClass, java.lang.String... arguments)  
      • Methods inherited from class java.lang.Object

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

      • run

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