LazyAutowiredFactory
public protocol LazyAutowiredFactory : Factory
The AutowiredFactory protocol is registered automatically, and lazily load the required dependencies from IoC container.
It requires a payload, so is registered as a prototype
scope.
-
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
-
Associated type for payload.
Declaration
Swift
associatedtype _Payload : Payload
-
qualifier
Default implementationSince autowiring by Type may lead to multiple candidates. The
qualifier
property is used to differentiate that.Default Implementation
Declaration
Swift
var qualifier: String? { get }
-
Pre-generated initialize method for instantiating.
A payload already existed when instantiate, so injected into the constructor.
Declaration
Swift
init(payload: _Payload)
-
inject(_:)
Default implementationPre-generated initialize method for 1 dependencies constructor inject.
Default Implementation
Declaration
Swift
func inject(_ dep1: Dep1)
-
inject(_:_:)
Default implementation -
inject(_:_:_:)
Default implementation -
inject(_:_:_:_:)
Default implementation -
inject(_:_:_:_:_:)
Default implementation -
inject(_:_:_:_:_:_:)
Default implementation -
inject(_:_:_:_:_:_:_:)
Default implementation -
inject(_:_:_:_:_:_:_:_:)
Default implementation -
inject(_:_:_:_:_:_:_:_:_:)
Default implementation -
payloadType
Extension methodTo supports type-inference of the compiler.
Declaration
Swift
var payloadType: _Payload.Type { get }