Packages

c

scaldi

InjectConstraints

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)

    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
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def and(by: IdentifiedWord[_]): IdentifiedWord[T]

    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

    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.this.type

    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
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  9. val default: Option[() ⇒ T]
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. var identifiers: List[Identifier]
  14. val initialIdentifiers: List[Identifier]
  15. def is(by: ByWord): ByWord

    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
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def that(by: ByWord): ByWord

    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
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  25. def which(by: ByWord): ByWord

    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