Package

com.datasift.dropwizard

scala

Permalink

package scala

Visibility
  1. Public
  2. All

Type Members

  1. trait ScalaApplication[A <: Configuration] extends Application[A]

    Permalink

    Base class for Dropwizard Services built in Scala.

    Base class for Dropwizard Services built in Scala.

    Building a Dropwizard Application in Scala has never been easier:

    import io.dropwizard.setup.{Bootstrap, Environment}
    import com.datasift.dropwizard.scala.ScalaApplication
    
    object MyApplication extends ScalaApplication[MyConfiguration] {
      def init(bootstrap: MyConfiguration) {
        // (optional) initialization code goes here
      }
    
      def run(configuration: MyConfiguration, environment: Environment) {
        // application code goes here
      }
    }

    Applications derived from this trait will automatically have the com.datasift.dropwizard.scala.ScalaBundle added to them during initialization.

  2. class ScalaBundle extends Bundle

    Permalink

    Provides Scala support to core Dropwizard functionality.

Ungrouped