@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()); } }
protected void destroyConversation(S session, String id) { if (session != null) { conversationBeforeDestroyedEvent.get().fire(id); setBeanStore(createSessionBeanStore(new ConversationNamingScheme(getNamingSchemePrefix(), id, beanIdentifierIndex), session)); getBeanStore().attach(); destroy(); getBeanStore().detach(); setBeanStore(null); conversationDestroyedEvent.get().fire(id); } }
protected void destroyConversation(S session, String id) { if (session != null) { conversationBeforeDestroyedEvent.get().fire(id); setBeanStore(createSessionBeanStore(new ConversationNamingScheme(getNamingSchemePrefix(), id, beanIdentifierIndex), session)); getBeanStore().attach(); destroy(); getBeanStore().detach(); setBeanStore(null); conversationDestroyedEvent.get().fire(id); } }
protected void destroyConversation(S session, String id) { if (session != null) { conversationBeforeDestroyedEvent.get().fire(id); setBeanStore(createSessionBeanStore(new ConversationNamingScheme(getNamingSchemePrefix(), id, beanIdentifierIndex), session)); getBeanStore().attach(); destroy(); getBeanStore().detach(); setBeanStore(null); conversationDestroyedEvent.get().fire(id); } }
protected Resolvable buildEventResolvable(Type eventType, Set<Annotation> qualifiers) { // We can always cache as this is only ever called by Weld where we avoid non-static inner classes for annotation literals Set<Type> typeClosure = sharedObjectCache.getTypeClosureHolder(eventType).get(); return new ResolvableBuilder(resolver.getMetaAnnotationStore()) .addTypes(typeClosure) .addType(Object.class) .addQualifiers(qualifiers) .addQualifierUnchecked(QualifierInstance.ANY) .create(); }
protected Resolvable buildEventResolvable(Type eventType, Annotation... qualifiers) { // We can always cache as this is only ever called by Weld where we avoid non-static inner classes for annotation literals return new ResolvableBuilder(resolver.getMetaAnnotationStore()).addTypes(sharedObjectCache.getTypeClosureHolder(eventType).get()).addType(Object.class) .addQualifiers(qualifiers).addQualifierUnchecked(QualifierInstance.ANY).create(); }
protected Resolvable buildEventResolvable(Type eventType, Annotation... qualifiers) { // We can always cache as this is only ever called by Weld where we avoid non-static inner classes for annotation literals return new ResolvableBuilder(resolver.getMetaAnnotationStore()).addTypes(sharedObjectCache.getTypeClosureHolder(eventType).get()).addType(Object.class) .addQualifiers(qualifiers).addQualifierUnchecked(QualifierInstance.ANY).create(); }
protected Resolvable buildEventResolvable(Type eventType, Set<Annotation> qualifiers) { // We can always cache as this is only ever called by Weld where we avoid non-static inner classes for annotation literals Set<Type> typeClosure = sharedObjectCache.getTypeClosureHolder(eventType).get(); return new ResolvableBuilder(resolver.getMetaAnnotationStore()).addTypes(typeClosure).addType(Object.class).addQualifiers(qualifiers) .addQualifierUnchecked(QualifierInstance.ANY).create(); }
protected Resolvable buildEventResolvable(Type eventType, Annotation... qualifiers) { // We can always cache as this is only ever called by Weld where we avoid non-static inner classes for annotation literals return new ResolvableBuilder(resolver.getMetaAnnotationStore()) .addTypes(sharedObjectCache.getTypeClosureHolder(eventType).get()) .addType(Object.class) .addQualifiers(qualifiers) .addQualifierUnchecked(QualifierInstance.ANY) .create(); }
protected Resolvable buildEventResolvable(Type eventType, Set<Annotation> qualifiers) { // We can always cache as this is only ever called by Weld where we avoid non-static inner classes for annotation literals Set<Type> typeClosure = sharedObjectCache.getTypeClosureHolder(eventType).get(); return new ResolvableBuilder(resolver.getMetaAnnotationStore()).addTypes(typeClosure).addType(Object.class).addQualifiers(qualifiers) .addQualifierUnchecked(QualifierInstance.ANY).create(); }
protected Resolvable buildEventResolvable(Type eventType, Set<Annotation> qualifiers) { // We can always cache as this is only ever called by Weld where we avoid non-static inner classes for annotation literals Set<Type> typeClosure = sharedObjectCache.getTypeClosureHolder(eventType).get(); return new ResolvableBuilder(resolver.getMetaAnnotationStore()).addTypes(typeClosure).addType(Object.class).addQualifiers(qualifiers) .addQualifierUnchecked(QualifierInstance.ANY).create(); }
protected Resolvable buildEventResolvable(Type eventType, Annotation... qualifiers) { // We can always cache as this is only ever called by Weld where we avoid non-static inner classes for annotation literals return new ResolvableBuilder(resolver.getMetaAnnotationStore()).addTypes(sharedObjectCache.getTypeClosureHolder(eventType).get()).addType(Object.class) .addQualifiers(qualifiers).addQualifierUnchecked(QualifierInstance.ANY).create(); }
protected void destroyConversation(S session, String id) { if (session != null) { setBeanStore(createSessionBeanStore(new ConversationNamingScheme(getNamingSchemePrefix(), id, beanIdentifierIndex), session)); getBeanStore().attach(); destroy(); getBeanStore().detach(); setBeanStore(null); conversationDestroyedEvent.get().fire(id); } }