final case class Binding[T](key: BindingKey[T], target: Option[BindingTarget[T]], scope: Option[Class[_ <: Annotation]], eager: Boolean, source: AnyRef) extends Product with Serializable
Ordering
- Alphabetic
- By Inheritance
Inherited
- Binding
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Binding(key: BindingKey[T], target: Option[BindingTarget[T]], scope: Option[Class[_ <: Annotation]], eager: Boolean, source: AnyRef)
- key
The binding key.
- target
The binding target.
- scope
The JSR-330 scope.
- eager
Whether the binding should be eagerly instantiated.
- source
Where this object was bound. Used in error reporting.
Value Members
- def asJava: inject.Binding[T]
- val eager: Boolean
- def eagerly(): Binding[T]
Eagerly instantiate this binding when Play starts up.
- def in[A <: Annotation](implicit arg0: ClassTag[A]): Binding[T]
Configure the scope for this binding.
- def in[A <: Annotation](scope: Class[A]): Binding[T]
Configure the scope for this binding.
- val key: BindingKey[T]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val scope: Option[Class[_ <: Annotation]]
- val source: AnyRef
- val target: Option[BindingTarget[T]]
- def toString(): String
- Definition Classes
- Binding → AnyRef → Any
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.
The binding key.
The binding target.
The JSR-330 scope.
Whether the binding should be eagerly instantiated.
Where this object was bound. Used in error reporting.
The Module class for information on how to provide bindings.