Skip to content

Commit

Permalink
Update Scala docs to point to new repo location.
Browse files Browse the repository at this point in the history
  • Loading branch information
bretthoerner committed Apr 8, 2013
1 parent 3b5614f commit 7938e4d
Showing 1 changed file with 1 addition and 35 deletions.
36 changes: 1 addition & 35 deletions docs/source/manual/scala.rst
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,38 +6,4 @@ Dropwizard & Scala


.. highlight:: text .. highlight:: text


.. rubric:: The ``dropwizard-scala`` module provides you with glue code required to write your .. rubric:: The ``dropwizard-scala`` module is now maintained and documented `elsewhere <https://github.com/bretthoerner/dropwizard-scala>`_.
Dropwizard services in Scala_.


.. _Scala: http://www.scala-lang.org

Dropwizard :ref:`services <man-core-service>` should extend ``ScalaService`` instead of ``Service``
and add ``ScalaBundle``:

.. code-block:: scala
object ExampleService extends ScalaService[ExampleConfiguration]) {
def initialize(bootstrap: Bootstrap[ExampleConfiguration]) {
bootstrap.setName("example")
bootstrap.addBundle(new ScalaBundle)
}
def run(configuration: ExampleConfiguration, environment: Environment) {
environment.addResource(new ExampleResource)
}
}
.. _man-scala-features:

Features
========

``dropwizard-scala`` provides the following:

* ``QueryParam``-annotated parameters of type ``Seq[String]``, ``List[String]``, ``Vector[String]``,
``IndexedSeq[String]``, ``Set[String]``, and ``Option[String]``.
* Case class (i.e., ``Product`` instances) 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 since ``Array`` type
parameters are reified.)

0 comments on commit 7938e4d

Please sign in to comment.