Interface Instance.Destructor<I>

Type Parameters:
I - the type borne by instances
Enclosing class:
Instance<I>
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 Instance.Destructor<I>
An interface whose implementations can destroy contextual instances.
Author:
Laird Nelson
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    destroy(I i, Request<I> creationRequest)
    Destroys the supplied contextual instance.
  • Method Details

    • destroy

      void destroy(I i, Request<I> creationRequest)
      Destroys the supplied contextual instance.
      Parameters:
      i - the contextual instance to destroy; may be null
      creationRequest - the Request that caused the contextual instance to be created; may be null