org.scalatra.Initializable.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scalatra_2.8.2.RC1 Show documentation
Show all versions of scalatra_2.8.2.RC1 Show documentation
The core Scalatra framework
The newest version!
package org.scalatra
/**
* 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.
*/
trait Initializable {
type Config
/**
* 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.
*/
def initialize(config: Config)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy