Trait

com.datasift.dropwizard.scala

ScalaApplication

Related Doc: package scala

Permalink

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
Visibility
  1. Public
  2. All

Abstract Value Members

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

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

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

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

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

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

    Permalink
    Definition Classes
    Application
  11. def getName(): String

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

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

    Permalink

    Service initialization.

    Service initialization.

    bootstrap

    Service Bootstrap environment.

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

    Permalink

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

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

    Permalink

    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.

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

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Application[A]

Inherited from AnyRef

Inherited from Any

Ungrouped