@Override T get(Bean<T> bean, BeanManagerImpl manager, CreationalContext<?> ctx) { T cached = cache.get(); if (cached != null) { return cached; } cached = super.get(bean, manager, ctx); if (RequestScopedCache.addItemIfActive(cache)) { cache.set(cached); } return cached; } }
@Override T getIfExists(Bean<T> bean, BeanManagerImpl manager) { T cached = cache.get(); if (cached != null) { return cached; } cached = super.getIfExists(bean, manager); if (cached != null && RequestScopedCache.addItemIfActive(cache)) { cache.set(cached); } return cached; }
@Override T getIfExists(Bean<T> bean, BeanManagerImpl manager) { T instance = value; if (instance != null) { return instance; } synchronized (this) { if (value == null) { instance = super.getIfExists(bean, manager); if (instance != null) { this.value = instance; } } return instance; } }
@Override T getIfExists(Bean<T> bean, BeanManagerImpl manager) { T instance = value; if (instance != null) { return instance; } synchronized (this) { if (value == null) { instance = super.getIfExists(bean, manager); if (instance != null) { this.value = instance; } } return instance; } }
@Override T getIfExists(Bean<T> bean, BeanManagerImpl manager) { T instance = value; if (instance != null) { return instance; } synchronized (this) { if (value == null) { instance = super.getIfExists(bean, manager); if (instance != null) { this.value = instance; } } return instance; } }
@Override T getIfExists(Bean<T> bean, BeanManagerImpl manager) { T instance = value; if (instance != null) { return instance; } synchronized (this) { if (value == null) { instance = super.getIfExists(bean, manager); if (instance != null) { this.value = instance; } } return instance; } }
@Override T getIfExists(Bean<T> bean, BeanManagerImpl manager) { T instance = value; if (instance != null) { return instance; } synchronized (this) { if (value == null) { instance = super.getIfExists(bean, manager); if (instance != null) { this.value = instance; } } return instance; } }
@Override T getIfExists(Bean<T> bean, BeanManagerImpl manager) { T instance = value; if (instance != null) { return instance; } synchronized (this) { if (value == null) { instance = super.getIfExists(bean, manager); if (instance != null) { this.value = instance; } } return instance; } }
@Override T get(Bean<T> bean, BeanManagerImpl manager, CreationalContext<?> ctx) { T instance = value; if (instance != null) { return instance; } synchronized (this) { if ((instance = value) == null) { this.value = instance = super.get(bean, manager, ctx); } return instance; } }
@Override T get(Bean<T> bean, BeanManagerImpl manager, CreationalContext<?> ctx) { T cached = cache.get(); if (cached != null) { return cached; } cached = super.get(bean, manager, ctx); if (RequestScopedCache.addItemIfActive(cache)) { cache.set(cached); } return cached; } }
@Override T get(Bean<T> bean, BeanManagerImpl manager, CreationalContext<?> ctx) { T cached = cache.get(); if (cached != null) { return cached; } cached = super.get(bean, manager, ctx); if (RequestScopedCache.addItemIfActive(cache)) { cache.set(cached); } return cached; } }
@Override T get(Bean<T> bean, BeanManagerImpl manager, CreationalContext<?> ctx) { T instance = value; if (instance != null) { return instance; } synchronized (this) { if ((instance = value) == null) { this.value = instance = super.get(bean, manager, ctx); } return instance; } }
@Override T getIfExists(Bean<T> bean, BeanManagerImpl manager) { T cached = cache.get(); if (cached != null) { return cached; } cached = super.getIfExists(bean, manager); if (cached != null && RequestScopedCache.addItemIfActive(cache)) { cache.set(cached); } return cached; }
@Override T get(Bean<T> bean, BeanManagerImpl manager, CreationalContext<?> ctx) { T cached = cache.get(); if (cached != null) { return cached; } cached = super.get(bean, manager, ctx); if (RequestScopedCache.addItemIfActive(cache)) { cache.set(cached); } return cached; } }
@Override T get(Bean<T> bean, BeanManagerImpl manager, CreationalContext<?> ctx) { T instance = value; if (instance != null) { return instance; } synchronized (this) { if ((instance = value) == null) { this.value = instance = super.get(bean, manager, ctx); } return instance; } }
@Override T getIfExists(Bean<T> bean, BeanManagerImpl manager) { T cached = cache.get(); if (cached != null) { return cached; } cached = super.getIfExists(bean, manager); if (cached != null && RequestScopedCache.addItemIfActive(cache)) { cache.set(cached); } return cached; }
@Override T get(Bean<T> bean, BeanManagerImpl manager, CreationalContext<?> ctx) { T instance = value; if (instance != null) { return instance; } synchronized (this) { if ((instance = value) == null) { this.value = instance = super.get(bean, manager, ctx); } return instance; } }
@Override T get(Bean<T> bean, BeanManagerImpl manager, CreationalContext<?> ctx) { T instance = value; if (instance != null) { return instance; } synchronized (this) { if ((instance = value) == null) { this.value = instance = super.get(bean, manager, ctx); } return instance; } }
@Override T getIfExists(Bean<T> bean, BeanManagerImpl manager) { T cached = cache.get(); if (cached != null) { return cached; } cached = super.getIfExists(bean, manager); if (cached != null && RequestScopedCache.addItemIfActive(cache)) { cache.set(cached); } return cached; }
@Override T get(Bean<T> bean, BeanManagerImpl manager, CreationalContext<?> ctx) { T cached = cache.get(); if (cached != null) { return cached; } cached = super.get(bean, manager, ctx); if (RequestScopedCache.addItemIfActive(cache)) { cache.set(cached); } return cached; } }