Interface ObjectLifecycleChange.Listener

Enclosing interface:
ObjectLifecycleChange
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ObjectLifecycleChange.Listener
Interface for receiving notifications about Object lifecycle changes.

Implement this interface and register it with an ObjectLifecycleChange provider to be notified when lifecycle events occur, such as object creation or deletion.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onLifecycleEvent(@NotNull ObjectLifecycleEvent lifecycleEvent)
    Called when a lifecycle event occurs.
  • Method Details

    • onLifecycleEvent

      void onLifecycleEvent(@NotNull @NotNull ObjectLifecycleEvent lifecycleEvent)
      Called when a lifecycle event occurs.
      Parameters:
      lifecycleEvent - The lifecycle event that occurred