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. def addDefaultCommands(arg0: Bootstrap[A]): Unit

    Attributes
    protected[io.dropwizard]
    Definition Classes
    Application
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def bootstrapLogLevel(): Level

    Attributes
    protected[io.dropwizard]
    Definition Classes
    Application
  9. def clone(): AnyRef

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

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

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

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

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

    Definition Classes
    Application
  15. def getName(): String

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

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

    Service initialization.

    Service initialization.

    bootstrap

    Service Bootstrap environment.

  18. 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
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. 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.

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

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

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

    Definition Classes
    AnyRef
  24. def onFatalError(): Unit

    Attributes
    protected[io.dropwizard]
    Definition Classes
    Application
  25. def run(arg0: <repeated...>[String]): Unit

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

    Definition Classes
    AnyRef
  27. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Application[A]

Inherited from AnyRef

Inherited from Any

Ungrouped