play.api.inject.guice

Members list

Type members

Classlikes

sealed abstract class BinderOption(configureBinder: Binder => Unit) extends Binder => Unit

Attributes

Companion
object
Supertypes
trait Binder => Unit
class Object
trait Matchable
class Any
Known subtypes
object BinderOption

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class GuiceApplicationBuilder(environment: Environment, configuration: Configuration, modules: Seq[GuiceableModule], overrides: Seq[GuiceableModule], disabled: Seq[Class[_]], binderOptions: Set[BinderOption], eagerly: Boolean, loadConfiguration: Environment => Configuration, loadModules: (Environment, Configuration) => Seq[GuiceableModule]) extends GuiceBuilder[GuiceApplicationBuilder]

A builder for creating Applications using Guice.

A builder for creating Applications using Guice.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

An ApplicationLoader that uses Guice to bootstrap the application.

An ApplicationLoader that uses Guice to bootstrap the application.

Subclasses can override the builder and overrides methods.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
abstract class GuiceBuilder[Self](environment: Environment, configuration: Configuration, modules: Seq[GuiceableModule], overrides: Seq[GuiceableModule], disabled: Seq[Class[_]], binderOptions: Set[BinderOption], eagerly: Boolean)

A builder for creating Guice-backed Play Injectors.

A builder for creating Guice-backed Play Injectors.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class GuiceClassLoader(val classLoader: ClassLoader)

An object that holds a ClassLoader for Guice to use. We use this simple value object so it can be looked up by its type when we're assembling the Guice injector.

An object that holds a ClassLoader for Guice to use. We use this simple value object so it can be looked up by its type when we're assembling the Guice injector.

Value parameters

classLoader

The wrapped ClassLoader.

Attributes

Supertypes
class Object
trait Matchable
class Any
class GuiceInjector(injector: Injector) extends Injector

Play Injector backed by a Guice Injector.

Play Injector backed by a Guice Injector.

Attributes

Supertypes
trait Injector
class Object
trait Matchable
class Any
final class GuiceInjectorBuilder(environment: Environment, configuration: Configuration, modules: Seq[GuiceableModule], overrides: Seq[GuiceableModule], disabled: Seq[Class[_]], binderOptions: Set[BinderOption], eagerly: Boolean) extends GuiceBuilder[GuiceInjectorBuilder]

Default empty builder for creating Guice-backed Injectors.

Default empty builder for creating Guice-backed Injectors.

Attributes

Supertypes
class Object
trait Matchable
class Any
class GuiceInjectorWithClassLoaderProvider(injector: GuiceInjector, guiceClassLoader: GuiceClassLoader) extends Provider[Injector]

A provider for a Guice injector that wraps the injector to ensure it uses the correct ClassLoader.

A provider for a Guice injector that wraps the injector to ensure it uses the correct ClassLoader.

Value parameters

guiceClassLoader

The ClassLoader the injector should use.

injector

The injector to wrap.

Attributes

Supertypes
trait Provider[Injector]
class Object
trait Matchable
class Any
object GuiceKey

Conversion from Play BindingKey to Guice Key.

Conversion from Play BindingKey to Guice Key.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
GuiceKey.type
class GuiceLoadException(message: String) extends RuntimeException

Attributes

Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Magnet pattern for creating Guice modules from Play modules or bindings.

Magnet pattern for creating Guice modules from Play modules or bindings.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Loading and converting Guice modules.

Loading and converting Guice modules.

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Implicit conversions to GuiceableModules.

Implicit conversions to GuiceableModules.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object GuiceableModule.type