Interface ResourceRegistry.ResourceLifecycleObserver<R>

Enclosing interface:
ResourceRegistry

public static interface ResourceRegistry.ResourceLifecycleObserver<R>
The ResourceRegistry.ResourceLifecycleObserver interface defines lifecycle handlers for resources registered with a ResourceRegistry.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onRelease(R resource)
    Called by a ResourceRegistry when a resource is being released.
  • Method Details

    • onRelease

      void onRelease(R resource)
      Called by a ResourceRegistry when a resource is being released. Resources are released when a ResourceRegistry is disposed.
      Parameters:
      resource - the resource being released