DILifeTime

public enum DILifeTime: Equatable

A object life time

  • The object is only one in the application. Initialization when first accessed

    Declaration

    Swift

    case lazySingle
  • The object is only one in the application. Initialization when first accessed, and the library doesn’t hold it

    Declaration

    Swift

    case weakSingle
  • The object is only one in one container. Initialization when first accessed

    Declaration

    Swift

    case perContainer
  • The object is created every time, but during the creation will be created once

    Declaration

    Swift

    case objectGraph