A fork of the original (now unmaintained) dropwizard-scala subproject of Dropwizard.
SBT information:
libraryDependencies += "com.massrelevance" %% "dropwizard-scala" % "0.7.1"Dropwizard services should extend ScalaApplication instead of Application
and add ScalaBundle:
object ExampleService extends ScalaApplication[ExampleConfiguration]) {
override def getName = "example"
def initialize(bootstrap: Bootstrap[ExampleConfiguration]) {
bootstrap.addBundle(new ScalaBundle)
}
def run(configuration: ExampleConfiguration, environment: Environment) {
env.jersey().register(new ExampleResource)
}
}dropwizard-scala provides the following:
QueryParam-annotated parameters of typeSeq[String],List[String],Vector[String],IndexedSeq[String],Set[String], andOption[String].- Case class (i.e.,
Productinstances) JSON request and response entities. Array[A]request and response entities. (Due to the JVM's type erasure and mismatches between Scala and Java type signatures, this is the only "generic" class supported sinceArraytype parameters are reified.)
