Class

play.api.inject.guice

GuiceBuilder

Related Doc: package guice

Permalink

abstract class GuiceBuilder[Self] extends AnyRef

A builder for creating Guice-backed Play Injectors.

Source
GuiceInjectorBuilder.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GuiceBuilder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GuiceBuilder(environment: Environment, configuration: Configuration, modules: Seq[GuiceableModule], overrides: Seq[GuiceableModule], disabled: Seq[Class[_]], binderOptions: Set[BinderOption], eagerly: Boolean)

    Permalink
    Attributes
    protected

Abstract Value Members

  1. abstract def newBuilder(environment: Environment, configuration: Configuration, modules: Seq[GuiceableModule], overrides: Seq[GuiceableModule], disabled: Seq[Class[_]], binderOptions: Set[BinderOption], eagerly: Boolean): Self

    Permalink

    Create a new Self for this immutable builder.

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

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def applicationModule(): com.google.inject.Module

    Permalink

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

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. final def bindings(bindModules: GuiceableModule*): Self

    Permalink

    Add Guice modules, Play modules, or Play bindings.

    Add Guice modules, Play modules, or Play bindings.

    See also

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

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def configure(conf: (String, Any)*): Self

    Permalink

    Add additional configuration.

  9. final def configure(conf: Map[String, Any]): Self

    Permalink

    Add additional configuration.

  10. final def configure(conf: Configuration): Self

    Permalink

    Add additional configuration.

  11. def createModule(): com.google.inject.Module

    Permalink

    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.

  12. final def disable[T](implicit tag: ClassTag[T]): Self

    Permalink

    Disable module by class.

  13. final def disable(moduleClasses: Class[_]*): Self

    Permalink

    Disable modules by class.

  14. final def disableCircularProxies(disable: Boolean = true): Self

    Permalink

    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.

  15. final def eagerlyLoaded(): Self

    Permalink

    Set the dependency initialization to eager.

  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def in(classLoader: ClassLoader): Self

    Permalink

    Set the environment class loader.

  22. final def in(mode: Mode.Mode): Self

    Permalink

    Set the environment mode.

  23. final def in(path: File): Self

    Permalink

    Set the environment path.

  24. final def in(env: Environment): Self

    Permalink

    Set the environment.

  25. def injector(): Injector

    Permalink

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

  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def overrides(overrideModules: GuiceableModule*): Self

    Permalink

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

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

    See also

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

  31. final def requireAtInjectOnConstructors(require: Boolean = true): Self

    Permalink

    Require @Inject on constructors (even default constructors).

    Require @Inject on constructors (even default constructors).

    This option is disabled by default.

  32. final def requireExactBindingAnnotations(require: Boolean = true): Self

    Permalink

    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.

  33. final def requireExplicitBindings(require: Boolean = true): Self

    Permalink

    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.

  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped