Interface WeldInstance.Handler<T>

  • Type Parameters:
    T - the required bean type
    All Superinterfaces:
    AutoCloseable, Instance.Handle<T>
    Enclosing interface:
    WeldInstance<T>

    @Deprecated
    public static interface WeldInstance.Handler<T>
    extends Instance.Handle<T>
    Deprecated.
    This interface is deprecated. CDI 4.0 introduced Instance.Handle interface that offers the same functionality and can be used in place of Weld specific WeldInstance.Handler. This interface represents a contextual reference handler.

    Allows to inspect the metadata of the relevant bean and also to destroy the underlying contextual instance.

    Author:
    Martin Kouba