DILifeTime

public enum DILifeTime: Equatable

A object life time

  • single: The object is only one in the application. Initialization by call DIContainer.initializeSingletonObjects()
  • lazySingle: The object is only one in the application. Initialization when first accessed
  • weakSingle: The object is only one in the application. Initialization when first accessed, and the library doesn’t hold it
  • objectGraph: The object is created every time, but during the creation will be created once
  • prototype: The object is created every time