case class NonLazyBinding(createFn: Option[() ⇒ Any], identifiers: List[Identifier] = Nil, condition: Option[() ⇒ Condition] = None, lifecycle: BindingLifecycle[Any] = BindingLifecycle.empty) extends BindingWithLifecycle with Product with Serializable
Binding that is initialized at the Injector initialization phase (normally during an application startup) and never changes afterwards.
- createFn
function that creates and returns value that will be associated with binding
- identifiers
binding's identifiers (empty by default)
- condition
binding's conditions (empty by default)
- lifecycle
binding's lifecycle (empty by default)
- Alphabetic
- By Inheritance
- NonLazyBinding
- Serializable
- Serializable
- Product
- Equals
- BindingWithLifecycle
- Identifiable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
NonLazyBinding(createFn: Option[() ⇒ Any], identifiers: List[Identifier] = Nil, condition: Option[() ⇒ Condition] = None, lifecycle: BindingLifecycle[Any] = BindingLifecycle.empty)
- createFn
function that creates and returns value that will be associated with binding
- identifiers
binding's identifiers (empty by default)
- condition
binding's conditions (empty by default)
- lifecycle
binding's lifecycle (empty by default)
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
condition: Option[() ⇒ Condition]
Stores condition for binding.
Stores condition for binding. Used for conditional binding
- returns
Option
with function returning condition
- Definition Classes
- NonLazyBinding → Identifiable
- var destroyableAdded: Boolean
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
get(lifecycleManager: LifecycleManager): Option[Any]
Retrieves stored binding's value, used during binding lookup during injection.
Retrieves stored binding's value, used during binding lookup during injection. If equals to
None
, binding is considered undefined- lifecycleManager
LifecycleManager
that will handle the destruction of the binding at the end of the lifecycle- returns
Option
with binding's value (orNone
if the binding is undefined)
- Definition Classes
- NonLazyBinding → BindingWithLifecycle
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
val
identifiers: List[Identifier]
- Definition Classes
- NonLazyBinding → Identifiable
-
def
init(lifecycleManager: LifecycleManager): Unit
- Definition Classes
- BindingWithLifecycle
-
def
isCacheable: Boolean
Specifies if binding is cacheable False by default
Specifies if binding is cacheable False by default
- returns
Boolean
true if binding is cacheable, false otherwise
- Definition Classes
- NonLazyBinding → Identifiable
-
def
isDefinedFor(desiredIdentifiers: List[Identifier]): Boolean
- Definition Classes
- Identifiable
-
def
isEager: Boolean
Defines if binding is lazy or not
false
by defaultDefines if binding is lazy or not
false
by default- returns
true
if not lazy,false
otherwise
- Definition Classes
- NonLazyBinding → Identifiable
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
lifecycle: BindingLifecycle[Any]
Bindings with lifecycle should have
BindingLifecycle
attached to themBindings with lifecycle should have
BindingLifecycle
attached to them- returns
BindingLifecycle
current binding's lifecycle
- Definition Classes
- NonLazyBinding → BindingWithLifecycle
-
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()
-
lazy val
resolvedCondition: Option[Condition]
- Attributes
- protected
- Definition Classes
- Identifiable
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- lazy val target: Option[Any]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()