Container.resolve

Resolve dependencies using a qualifier.

Dependencies can only resolved using this method if they are registered by super type.

Resolved dependencies are automatically injected before being returned.

  1. RegistrationType resolve()
  2. QualifierType resolve()
    class Container
    QualifierType
    resolve
    (
    RegistrationType
    QualifierType : RegistrationType
    )
    ()

Return Value

Type: QualifierType

An instance is returned which is created according to the registration scope with which they are registered.

Throws

ResolveException when type is not registered or there are multiple candidates available for type.

Meta