Autowired

public protocol Autowired : Inject

The Autowired protocol is registered automatically, and load the required dependencies from IoC container.

  • Associated type for dependency 1.

    Declaration

    Swift

    associatedtype Dep1 = Void
  • Associated type for dependency 2.

    Declaration

    Swift

    associatedtype Dep2 = Void
  • Associated type for dependency 3.

    Declaration

    Swift

    associatedtype Dep3 = Void
  • Associated type for dependency 4.

    Declaration

    Swift

    associatedtype Dep4 = Void
  • Associated type for dependency 5.

    Declaration

    Swift

    associatedtype Dep5 = Void
  • Associated type for dependency 6.

    Declaration

    Swift

    associatedtype Dep6 = Void
  • Associated type for dependency 7.

    Declaration

    Swift

    associatedtype Dep7 = Void
  • Associated type for dependency 8.

    Declaration

    Swift

    associatedtype Dep8 = Void
  • Associated type for dependency 9.

    Declaration

    Swift

    associatedtype Dep9 = Void
  • 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 }
  • init(_:) Default implementation

    Pre-generated initialize method for 1 dependencies constructor inject.

    Default Implementation

    Declaration

    Swift

    init(_ dep1: Dep1)
  • init(_:_:) Default implementation

    Pre-generated initialize method for 2 dependencies constructor inject.

    Default Implementation

    Declaration

    Swift

    init(_ dep1: Dep1, _ dep2: Dep2)
  • init(_:_:_:) Default implementation

    Pre-generated initialize method for 3 dependencies constructor inject.

    Default Implementation

    Declaration

    Swift

    init(_ dep1: Dep1, _ dep2: Dep2, _ dep3: Dep3)
  • init(_:_:_:_:) Default implementation

    Pre-generated initialize method for 4 dependencies constructor inject.

    Default Implementation

    Declaration

    Swift

    init(_ dep1: Dep1, _ dep2: Dep2, _ dep3: Dep3, _ dep4: Dep4)
  • init(_:_:_:_:_:) Default implementation

    Pre-generated initialize method for 5 dependencies constructor inject.

    Default Implementation

    Declaration

    Swift

    init(_ dep1: Dep1, _ dep2: Dep2, _ dep3: Dep3, _ dep4: Dep4, _ dep5: Dep5)
  • init(_:_:_:_:_:_:) Default implementation

    Pre-generated initialize method for 6 dependencies constructor inject.

    Default Implementation

    Declaration

    Swift

    init(_ dep1: Dep1, _ dep2: Dep2, _ dep3: Dep3, _ dep4: Dep4, _ dep5: Dep5, _ dep6: Dep6)
  • init(_:_:_:_:_:_:_:) Default implementation

    Pre-generated initialize method for 7 dependencies constructor inject.

    Default Implementation

    Declaration

    Swift

    init(_ dep1: Dep1, _ dep2: Dep2, _ dep3: Dep3, _ dep4: Dep4, _ dep5: Dep5, _ dep6: Dep6, _ dep7: Dep7)
  • init(_:_:_:_:_:_:_:_:) Default implementation

    Pre-generated initialize method for 8 dependencies constructor inject.

    Default Implementation

    Declaration

    Swift

    init(_ dep1: Dep1, _ dep2: Dep2, _ dep3: Dep3, _ dep4: Dep4, _ dep5: Dep5, _ dep6: Dep6, _ dep7: Dep7, _ dep8: Dep8)
  • init(_:_:_:_:_:_:_:_:_:) Default implementation

    Pre-generated initialize method for 9 dependencies constructor inject.

    Default Implementation

    Declaration

    Swift

    init(_ dep1: Dep1, _ dep2: Dep2, _ dep3: Dep3, _ dep4: Dep4, _ dep5: Dep5, _ dep6: Dep6, _ dep7: Dep7, _ dep8: Dep8, _ dep9: Dep9)