Packages

  • package root
    Definition Classes
    root
  • package play

    Play framework.

    Play framework.

    Play

    http://www.playframework.com

    Definition Classes
    root
  • package api

    Contains the public API for Scala developers.

    Contains the public API for Scala developers.

    Read configuration
    val poolSize = configuration.getInt("engine.pool.size")
    Use the logger
    Logger.info("Hello!")
    Define a Plugin
    class MyPlugin(app: Application) extends Plugin
    Create adhoc applications (for testing)
    val application = Application(new File("."), this.getClass.getClassloader, None, Play.Mode.DEV)
    Definition Classes
    play
  • package inject

    Play's runtime dependency injection abstraction.

    Play's runtime dependency injection abstraction.

    Play's runtime dependency injection support is built on JSR-330, which provides a specification for declaring how dependencies get wired to components. JSR-330 however does not address how components are provided to or located by a DI container. Play's API seeks to address this in a DI container agnostic way.

    The reason for providing this abstraction is so that Play, the modules it provides, and third party modules can all express their bindings in a way that is not specific to any one DI container.

    Components are bound in the DI container. Each binding is identified by a BindingKey, which is typically an interface that the component implements, and may be optionally qualified by a JSR-330 qualifier annotation. A binding key is bound to a BindingTarget, which describes how the implementation of the interface that the binding key represents is constructed or provided. Bindings may also be scoped using JSR-330 scope annotations.

    Bindings are provided by instances of Module.

    Out of the box, Play provides an implementation of this abstraction using Guice.

    Definition Classes
    api
    See also

    The Module class for information on how to provide bindings.

  • package guice
    Definition Classes
    inject
  • BinderOption
  • GuiceApplicationBuilder
  • GuiceApplicationLoader
  • GuiceBuilder
  • GuiceClassLoader
  • GuiceInjector
  • GuiceInjectorBuilder
  • GuiceInjectorWithClassLoaderProvider
  • GuiceKey
  • GuiceLoadException
  • GuiceableModule
  • GuiceableModuleConversions

object GuiceableModule extends GuiceableModuleConversions

Loading and converting Guice modules.

Source
GuiceInjectorBuilder.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GuiceableModule
  2. GuiceableModuleConversions
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. implicit def fromGuiceModule(guiceModule: com.google.inject.Module): GuiceableModule
    Definition Classes
    GuiceableModuleConversions
  9. implicit def fromGuiceModules(guiceModules: Seq[com.google.inject.Module]): GuiceableModule
    Definition Classes
    GuiceableModuleConversions
  10. implicit def fromPlayBinding(binding: Binding[_]): GuiceableModule
    Definition Classes
    GuiceableModuleConversions
  11. implicit def fromPlayBindings(bindings: Seq[Binding[_]]): GuiceableModule
    Definition Classes
    GuiceableModuleConversions
  12. implicit def fromPlayModule(playModule: Module): GuiceableModule
    Definition Classes
    GuiceableModuleConversions
  13. implicit def fromPlayModules(playModules: Seq[Module]): GuiceableModule
    Definition Classes
    GuiceableModuleConversions
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  15. def guice(bindings: Seq[Binding[_]], binderOptions: Set[BinderOption]): com.google.inject.Module

    Convert the given Play bindings to a Guice module.

    Convert the given Play bindings to a Guice module.

    Definition Classes
    GuiceableModuleConversions
  16. def guice(env: Environment, conf: Configuration, binderOptions: Set[BinderOption])(module: Module): com.google.inject.Module

    Convert the given Play module to a Guice module.

    Convert the given Play module to a Guice module.

    Definition Classes
    GuiceableModuleConversions
  17. def guiceable(module: Any): GuiceableModule

    Attempt to convert a module of unknown type to a GuiceableModule.

  18. def guiced(env: Environment, conf: Configuration, binderOptions: Set[BinderOption])(builders: Seq[GuiceableModule]): Seq[com.google.inject.Module]

    Apply GuiceableModules to create Guice modules.

  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def loadModules(environment: Environment, configuration: Configuration): Seq[GuiceableModule]
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped