Interface Instance.Handle<T>

Type Parameters:
T - the required bean type
All Superinterfaces:
AutoCloseable
Enclosing interface:
Instance<T>

public static interface Instance.Handle<T> extends AutoCloseable
This interface represents a contextual reference handle.

Allows to inspect the metadata of the relevant bean before resolving its contextual reference and also to destroy the underlying contextual instance.

Author:
Matej Novotny
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Delegates to destroy().
    void
    Destroy the contextual instance.
    get()
    The contextual reference is obtained lazily, i.e.
     
  • Method Details