Container.resolve

Resolve dependencies.

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

Resolved dependencies are automatically injected before being returned.

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

Return Value

Type: RegistrationType

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

Throws

ResolveException when type is not registered.

You need to use the resolve method which allows you to specify a qualifier.

Meta