All Downloads are FREE. Search and download functionalities are using the official Maven repository.

be.objectify.deadbolt.scala.DeadboltModule.scala Maven / Gradle / Ivy

There is a newer version: 2.7.1
Show newest version
package be.objectify.deadbolt.scala

import be.objectify.deadbolt.scala.cache.{DefaultPatternCache, PatternCache}
import play.api.inject.{Binding, Module}
import play.api.{Configuration, Environment}

/**
 * @author Steve Chaloner ([email protected])
 */
class DeadboltModule extends Module {
  override def bindings(environment: Environment, configuration: Configuration): Seq[Binding[_]] = Seq(
    bind[PatternCache].to[DefaultPatternCache],
    bind[ScalaAnalyzer].toSelf,
    bind[DeadboltActions].toSelf,
    bind[ViewSupport].toSelf,
    bind[ActionBuilders].toSelf,
    bind[TemplateFailureListenerProvider].toSelf,
    bind[ExecutionContextProvider].toSelf
  )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy