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
c

play.api.inject.guice

GuiceInjectorBuilder

final class GuiceInjectorBuilder extends GuiceBuilder[GuiceInjectorBuilder]

Default empty builder for creating Guice-backed Injectors.

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

Instance Constructors

  1. new GuiceInjectorBuilder()
  2. new GuiceInjectorBuilder(environment: Environment = Environment.simple(), configuration: Configuration = Configuration.empty, modules: Seq[GuiceableModule] = Seq.empty, overrides: Seq[GuiceableModule] = Seq.empty, disabled: Seq[Class[_]] = Seq.empty, binderOptions: Set[BinderOption] = BinderOption.defaults, eagerly: Boolean = false)

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. def applicationModule(): com.google.inject.Module

    Create a Play Injector backed by Guice using this configured builder.

    Create a Play Injector backed by Guice using this configured builder.

    Definition Classes
    GuiceBuilder
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. final def bindings(bindModules: GuiceableModule*): GuiceInjectorBuilder

    Add Guice modules, Play modules, or Play bindings.

    Add Guice modules, Play modules, or Play bindings.

    Definition Classes
    GuiceBuilder
    See also

    GuiceableModuleConversions for the automatically available implicit conversions to GuiceableModule from modules and bindings.

  7. def build(): Injector

    Create a Play Injector backed by Guice using this configured builder.

  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. final def configure(conf: (String, Any)*): GuiceInjectorBuilder

    Add additional configuration.

    Add additional configuration.

    Definition Classes
    GuiceBuilder
  10. final def configure(conf: Map[String, Any]): GuiceInjectorBuilder

    Add additional configuration.

    Add additional configuration.

    Definition Classes
    GuiceBuilder
  11. final def configure(conf: Configuration): GuiceInjectorBuilder

    Add additional configuration.

    Add additional configuration.

    Definition Classes
    GuiceBuilder
  12. def createModule(): com.google.inject.Module

    Creation of the Guice Module used by the injector.

    Creation of the Guice Module used by the injector. Libraries like Guiceberry and Jukito that want to handle injector creation may find this helpful.

    Definition Classes
    GuiceBuilder
  13. final def disable[T](implicit tag: ClassTag[T]): GuiceInjectorBuilder

    Disable module by class.

    Disable module by class.

    Definition Classes
    GuiceBuilder
  14. final def disable(moduleClasses: Class[_]*): GuiceInjectorBuilder

    Disable modules by class.

    Disable modules by class.

    Definition Classes
    GuiceBuilder
  15. final def disableCircularProxies(disable: Boolean = true): GuiceInjectorBuilder

    Disable circular proxies on the Guice Binder.

    Disable circular proxies on the Guice Binder. Without this option, Guice will try to proxy interfaces/traits to break a circular dependency.

    Circular proxies are disabled by default. Use disableCircularProxies(false) to allow circular proxies.

    Definition Classes
    GuiceBuilder
  16. final def eagerlyLoaded(): GuiceInjectorBuilder

    Set the dependency initialization to eager.

    Set the dependency initialization to eager.

    Definition Classes
    GuiceBuilder
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. final def in(classLoader: ClassLoader): GuiceInjectorBuilder

    Set the environment class loader.

    Set the environment class loader.

    Definition Classes
    GuiceBuilder
  23. final def in(mode: Mode): GuiceInjectorBuilder

    Set the environment mode.

    Set the environment mode.

    Definition Classes
    GuiceBuilder
  24. final def in(path: File): GuiceInjectorBuilder

    Set the environment path.

    Set the environment path.

    Definition Classes
    GuiceBuilder
  25. final def in(env: Environment): GuiceInjectorBuilder

    Set the environment.

    Set the environment.

    Definition Classes
    GuiceBuilder
  26. def injector(): Injector

    Create a Play Injector backed by Guice using this configured builder.

    Create a Play Injector backed by Guice using this configured builder.

    Definition Classes
    GuiceBuilder
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def newBuilder(environment: Environment, configuration: Configuration, modules: Seq[GuiceableModule], overrides: Seq[GuiceableModule], disabled: Seq[Class[_]], binderOptions: Set[BinderOption], eagerly: Boolean): GuiceInjectorBuilder

    Create a new Self for this immutable builder.

    Create a new Self for this immutable builder. Provided by builder implementations.

    Attributes
    protected
    Definition Classes
    GuiceInjectorBuilderGuiceBuilder
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. final def overrides(overrideModules: GuiceableModule*): GuiceInjectorBuilder

    Override bindings using Guice modules, Play modules, or Play bindings.

    Override bindings using Guice modules, Play modules, or Play bindings.

    Definition Classes
    GuiceBuilder
    See also

    GuiceableModuleConversions for the automatically available implicit conversions to GuiceableModule from modules and bindings.

  33. final def requireAtInjectOnConstructors(require: Boolean = true): GuiceInjectorBuilder

    Require @Inject on constructors (even default constructors).

    Require @Inject on constructors (even default constructors).

    This option is disabled by default.

    Definition Classes
    GuiceBuilder
  34. final def requireExactBindingAnnotations(require: Boolean = true): GuiceInjectorBuilder

    Requires that Guice finds an exactly matching binding annotation.

    Requires that Guice finds an exactly matching binding annotation.

    Disables the error-prone feature in Guice where it can substitute a binding for @Named Foo when injecting @Named("foo") Foo.

    This option is disabled by default.

    Definition Classes
    GuiceBuilder
  35. final def requireExplicitBindings(require: Boolean = true): GuiceInjectorBuilder

    Instructs the injector to only inject classes that are explicitly bound in a module.

    Instructs the injector to only inject classes that are explicitly bound in a module.

    This option is disabled by default.

    Definition Classes
    GuiceBuilder
  36. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  37. def toString(): String
    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped