Binding
play.api.inject.Binding
final case class Binding[T](key: BindingKey[T], target: Option[BindingTarget[T]], scope: Option[Class[_ <: Annotation]], eager: Boolean, source: Object)
A binding.
Bindings are used to bind classes, optionally qualified by a JSR-330 qualifier annotation, to instances, providers or implementation classes.
Bindings may also specify a JSR-330 scope. If, and only if that scope is javax.inject.Singleton, then the binding may declare itself to be eagerly instantiated. In which case, it should be eagerly instantiated when Play starts up.
Value parameters
- eager
-
Whether the binding should be eagerly instantiated.
- key
-
The binding key.
- scope
-
The JSR-330 scope.
- source
-
Where this object was bound. Used in error reporting.
- target
-
The binding target.
Attributes
- See also
-
The Module class for information on how to provide bindings.
- Graph
-
- Supertypes
Members list
In this article