Class ContextInstanceHandleImpl<T>

    • Constructor Detail

      • ContextInstanceHandleImpl

        public ContextInstanceHandleImpl​(InjectableBean<T> bean,
                                         T instance,
                                         javax.enterprise.context.spi.CreationalContext<T> creationalContext)
    • Method Detail

      • destroy

        public void destroy()
        Description copied from interface: InstanceHandle
        Destroy the instance as defined by Contextual.destroy(Object, javax.enterprise.context.spi.CreationalContext). If this is a CDI contextual instance it is also removed from the underlying context.
        Specified by:
        destroy in interface ContextInstanceHandle<T>
        Specified by:
        destroy in interface InstanceHandle<T>
        See Also:
        AlterableContext.destroy(javax.enterprise.context.spi.Contextual)
      • unavailable

        public static final <T> InstanceHandle<T> unavailable()
      • get

        public T get()
        Specified by:
        get in interface InstanceHandle<T>
        Returns:
        an instance of T or null
      • destroyInternal

        protected void destroyInternal()