@Override public T get() { if (!value.isAvailable() && instance.get() == null) { // Contextual reference cannot be obtained if the producing Instance does not exist throw BeanLogger.LOG.cannotObtainHandlerContextualReference(this); } return value.get(); }
@Override public T get() { if (!value.isAvailable() && instance.get() == null) { // Contextual reference cannot be obtained if the producing Instance does not exist throw BeanLogger.LOG.cannotObtainHandlerContextualReference(this); } return value.get(); }
@Override public T get() { if (!value.isAvailable() && instance.get() == null) { // Contextual reference cannot be obtained if the producing Instance does not exist throw BeanLogger.LOG.cannotObtainHandlerContextualReference(this); } return value.get(); }
@Override public T get() { if (!value.isAvailable() && instance.get() == null) { // Contextual reference cannot be obtained if the producing Instance does not exist throw BeanLogger.LOG.cannotObtainHandlerContextualReference(this); } return value.get(); }
@Override public T get() { if (!value.isAvailable() && instance.get() == null) { // Contextual reference cannot be obtained if the producing Instance does not exist throw BeanLogger.LOG.cannotObtainHandlerContextualReference(this); } return value.get(); }
@Override public T get() { if (!value.isAvailable() && instance.get() == null) { // Contextual reference cannot be obtained if the producing Instance does not exist throw BeanLogger.LOG.cannotObtainHandlerContextualReference(this); } return value.get(); }
@Override public void destroy() { WeldInstance<T> ref = instance.get(); if (ref == null) { BeanLogger.LOG.cannotDestroyHandlerContextualReference(this); } if (value.isAvailable() && isDestroyed.compareAndSet(false, true)) { ref.destroy(value.get()); } }
@Override public void destroy() { WeldInstance<T> ref = instance.get(); if (ref == null) { BeanLogger.LOG.cannotDestroyHandlerContextualReference(this); } if (value.isAvailable() && isDestroyed.compareAndSet(false, true)) { ref.destroy(value.get()); } }
@Override public void destroy() { WeldInstance<T> ref = instance.get(); if (ref == null) { BeanLogger.LOG.cannotDestroyHandlerContextualReference(this); } if (value.isAvailable() && isDestroyed.compareAndSet(false, true)) { ref.destroy(value.get()); } }
@Override public void destroy() { WeldInstance<T> ref = instance.get(); if (ref == null) { BeanLogger.LOG.cannotDestroyHandlerContextualReference(this); } if (value.isAvailable() && isDestroyed.compareAndSet(false, true)) { ref.destroy(value.get()); } }
@Override public void destroy() { WeldInstance<T> ref = instance.get(); if (ref == null) { BeanLogger.LOG.cannotDestroyHandlerContextualReference(this); } if (value.isAvailable() && isDestroyed.compareAndSet(false, true)) { ref.destroy(value.get()); } }
@Override public void destroy() { WeldInstance<T> ref = instance.get(); if (ref == null) { BeanLogger.LOG.cannotDestroyHandlerContextualReference(this); } if (value.isAvailable() && isDestroyed.compareAndSet(false, true)) { ref.destroy(value.get()); } }