com.datasift.dropwizard.scala

ScalaApplication

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

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.

Linear Supertypes
Application[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ScalaApplication
  2. Application
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def run(arg0: A, arg1: Environment): Unit

    Definition Classes
    Application
    Annotations
    @throws( classOf[java.lang.Exception] )

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. final def getConfigurationClass(): Class[A]

    Definition Classes
    Application
  13. def getName(): String

    Definition Classes
    ScalaApplication → Application
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. def init(bootstrap: Bootstrap[A]): Unit

    Service initialization.

    Service initialization.

    bootstrap

    Service Bootstrap environment.

  16. final def initialize(bootstrap: Bootstrap[A]): Unit

    Service initialization.

    Service initialization.

    Ensures that com.datasift.dropwizard.scala.ScalaBundle is always included in Scala services.

    To customize initialization behaviour, override ScalaService#init(Bootstrap).

    bootstrap

    Service Bootstrap environment.

    Definition Classes
    ScalaApplication → Application
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. final def main(args: Array[String]): Unit

    Entry point for this Dropwizard io.dropwizard.Application.

    Entry point for this Dropwizard io.dropwizard.Application.

    args

    the command-line arguments the program was invoked with.

  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def run(arg0: <repeated...>[String]): Unit

    Definition Classes
    Application
    Annotations
    @throws( classOf[java.lang.Exception] )
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. def toString(): String

    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Application[A]

Inherited from AnyRef

Inherited from Any

Ungrouped