Component

public protocol Component : Inject

The class, struct, and protocol that inheritance Component protocol is registered IoC Container automatically.

  • qualifier Default implementation

    Since autowiring by Type may lead to multiple candidates. The qualifier property is used to differentiate that.

    Default Implementation

    Declaration

    Swift

    var qualifier: String? { get }
  • scope Default implementation

    All instances lifecycle is managed by IoC Container. The scope property specifies how to manage it.

    Default Implementation

    Declaration

    Swift

    var scope: Scope { get }