Factory

public protocol Factory : Inject

The Factory protocol supports type-inference of the compiler for the payload.

  • Associated type for payload.

    Declaration

    Swift

    associatedtype RawPayload : Payload
  • To supports type-inference of the compiler.

    Declaration

    Swift

    var payloadType: RawPayload.Type { get }