Class

scaldi

InjectConstraints

Related Doc: package scaldi

Permalink

case class InjectConstraints[+T](default: Option[() ⇒ T] = None, initialIdentifiers: List[Identifier] = Nil) extends Product with Serializable

A wrapper for a default value for the injection and for its identifiers.

It is here to make injection constraints look like natural language.

T

type of the dependency being injected

default

default value for injected instance. It would be used if biding is not found in the Injector.

initialIdentifiers

identifiers

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InjectConstraints
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new InjectConstraints(default: Option[() ⇒ T] = None, initialIdentifiers: List[Identifier] = Nil)

    Permalink

    default

    default value for injected instance. It would be used if biding is not found in the Injector.

    initialIdentifiers

    identifiers

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def and(by: IdentifiedWord[_]): IdentifiedWord[T]

    Permalink

    Helper method to make possible that "identified" follows "and" word.

    Helper method to make possible that "identified" follows "and" word.

    Example: inject [Database] (by default defaultDb and identified by 'remote)

    by

    IdentifiedWord that follows the "and"

  5. def and(by: ByWord): ByWord

    Permalink

    Helper method to define a default value for injection.

    Helper method to define a default value for injection.

    Example: inject [Database] ('database and by default defaultDb)

    by

    ByWord that follows the "and"

  6. def and(ids: Identifier*): InjectConstraints[T]

    Permalink

    Appends identifier to a current list of identifiers.

    Appends identifier to a current list of identifiers.

    ids

    one or many other identifiers

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val default: Option[() ⇒ T]

    Permalink

    default value for injected instance.

    default value for injected instance. It would be used if biding is not found in the Injector.

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. var identifiers: List[Identifier]

    Permalink
  14. val initialIdentifiers: List[Identifier]

    Permalink

    identifiers

  15. def is(by: ByWord): ByWord

    Permalink

    Alias to "and"

    Alias to "and"

    Example: inject [Database] ('remote is by default defaultDb)

    by

    ByWord that follows the "is"

  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def that(by: ByWord): ByWord

    Permalink

    Alias to "and"

    Alias to "and"

    Example: inject [Database] ('remote that by default defaultDb)

    by

    ByWord that follows the "that"

  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def which(by: ByWord): ByWord

    Permalink

    Alias to "and"

    Alias to "and"

    Example: inject [Database] ('remote which by default defaultDb)

    by

    ByWord that follows the "which"

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped