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

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

    Permalink
    Definition Classes
    Any
  6. def bootstrapLogLevel(): Level

    Permalink
    Attributes
    protected[io.dropwizard]
    Definition Classes
    Application
  7. def bootstrapLogging(): Unit

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

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

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

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

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

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

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

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

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

    Permalink

    Service initialization.

    Service initialization.

    bootstrap

    Service Bootstrap environment.

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  23. def onFatalError(): Unit

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

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

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

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

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

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

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

Inherited from Application[A]

Inherited from AnyRef

Inherited from Any

Ungrouped