Container.register

Register a dependency by super type.

A dependency registered by super type can only be resolved by super type. A qualifier is typically used to resolve dependencies registered by super type.

The default registration scope is "single instance" scope.

  1. Registration register()
  2. Registration register(RegistrationOptionsTuple options)
    class Container
    Registration
    register
    (
    SuperType
    ConcreteType : SuperType
    RegistrationOptionsTuple...
    )
    (
    RegistrationOptionsTuple options
    )

See Also

singleInstance, newInstance, existingInstance, RegistrationOptions

Meta