Interface ILifeCycle<T extends ILifeCycle<T>>

Type Parameters:
T - the type of the life cycle
All Known Implementing Classes:
EventReference

public interface ILifeCycle<T extends ILifeCycle<T>>
Represents an object that has its own life cycle. A life usually has a start and an end.
  • Method Summary

    Modifier and Type
    Method
    Description
    default LifeCycle<T>
    Wraps an object into a life cycle.
    void
    Unregisters the life cycle.
  • Method Details

    • lifeCycle

      default LifeCycle<T> lifeCycle()
      Wraps an object into a life cycle.
      Returns:
      the life cycle
    • unregister

      void unregister()
      Unregisters the life cycle.