skinny.micro.base.MainThreadLocalEverywhere.scala Maven / Gradle / Ivy
The newest version!
package skinny.micro.base
import javax.servlet.ServletContext
import skinny.micro.context.SkinnyContext
/**
* When this trait is activated, thread-local request/response needed by SkinnyMicroContext are always accessible.
*/
trait MainThreadLocalEverywhere extends SkinnyContextInitializer {
self: ServletContextAccessor with UnstableAccessValidationConfig =>
/**
* Skinny Micro Context
*/
override implicit def skinnyContext(implicit ctx: ServletContext): SkinnyContext = {
super.skinnyContext(ctx)
}
}