Initializable

org.scalatra.Initializable

Trait representing an object that can't be fully initialized by its constructor. Useful for unifying the initialization process of an HttpServlet and a Filter.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Type members

Classlikes

trait Config

Attributes

Supertypes
class Object
trait Matchable
class Any

Types

type ConfigT

Value members

Abstract methods

def initialize(config: ConfigT): Unit

A hook to initialize the class with some configuration after it has been constructed.

A hook to initialize the class with some configuration after it has been constructed.

Not called init because GenericServlet doesn't override it, and then we get into https://lampsvn.epfl.ch/trac/scala/ticket/2497.

Attributes

Concrete methods

protected def shutdown(): Unit

A hook to shutdown the class. Bridges the gap between servlet's destroy and filter's destroy.

A hook to shutdown the class. Bridges the gap between servlet's destroy and filter's destroy.

Attributes

Implicits

Implicits

implicit protected def configWrapper(config: ConfigT): Config