org.scalatra.Initializable.scala Maven / Gradle / Ivy
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 - 2025 Weber Informatics LLC | Privacy Policy