package scala
Type Members
-
trait
ScalaApplication
[A <: Configuration] extends Application[A]
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.
-
class
ScalaBundle
extends Bundle
Provides Scala support to core Dropwizard functionality.