abstract class GuiceBuilder[Self] extends AnyRef
A builder for creating Guice-backed Play Injectors.
- Alphabetic
- By Inheritance
- GuiceBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new GuiceBuilder(environment: Environment, configuration: Configuration, modules: Seq[GuiceableModule], overrides: Seq[GuiceableModule], disabled: Seq[Class[_]], binderOptions: Set[BinderOption], eagerly: Boolean)
- Attributes
- protected
Abstract Value Members
- abstract def newBuilder(environment: Environment, configuration: Configuration, modules: Seq[GuiceableModule], overrides: Seq[GuiceableModule], disabled: Seq[Class[_]], binderOptions: Set[BinderOption], eagerly: Boolean): Self
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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def applicationModule(): com.google.inject.Module
Create a Play Injector backed by Guice using this configured builder.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def bindings(bindModules: GuiceableModule*): Self
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.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def configure(conf: (String, Any)*): Self
Add additional configuration.
- final def configure(conf: Map[String, Any]): Self
Add additional configuration.
- final def configure(conf: Configuration): Self
Add additional configuration.
- 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.
- final def disable[T](implicit tag: ClassTag[T]): Self
Disable module by class.
- final def disable(moduleClasses: Class[_]*): Self
Disable modules by class.
- final def disableCircularProxies(disable: Boolean = true): Self
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.
- final def eagerlyLoaded(): Self
Set the dependency initialization to eager.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def in(classLoader: ClassLoader): Self
Set the environment class loader.
- final def in(mode: Mode): Self
Set the environment mode.
- final def in(path: File): Self
Set the environment path.
- final def in(env: Environment): Self
Set the environment.
- def injector(): Injector
Create a Play Injector backed by Guice using this configured builder.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def overrides(overrideModules: GuiceableModule*): Self
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.
- final def requireAtInjectOnConstructors(require: Boolean = true): Self
Require @Inject on constructors (even default constructors).
Require @Inject on constructors (even default constructors).
This option is disabled by default.
- final def requireExactBindingAnnotations(require: Boolean = true): Self
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.
- final def requireExplicitBindings(require: Boolean = true): Self
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.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()