public void vetoSpecializingBean(Bean<?> bean) { Set<? extends AbstractBean<?, ?>> noLongerSpecializedBeans = specializedBeans.getValueIfPresent(bean); if (noLongerSpecializedBeans != null) { specializedBeans.invalidate(bean); for (AbstractBean<?, ?> noLongerSpecializedBean : noLongerSpecializedBeans) { // We should never get null here but just to be sure AtomicLong count = specializedBeansMap.get(noLongerSpecializedBean); if (count != null) { count.decrementAndGet(); } } } }
public boolean isCached(R resolvable) { return resolved.getValueIfPresent(wrap(resolvable)) != null; }
public boolean isCached(R resolvable) { return resolved.getValueIfPresent(wrap(resolvable)) != null; }
public boolean isCached(R resolvable) { return resolved.getValueIfPresent(wrap(resolvable)) != null; }
public boolean isCached(R resolvable) { return resolved.getValueIfPresent(wrap(resolvable)) != null; }
public boolean isCached(R resolvable) { return resolved.getValueIfPresent(wrap(resolvable)) != null; }
public boolean isCached(R resolvable) { return resolved.getValueIfPresent(wrap(resolvable)) != null; }
public void vetoSpecializingBean(Bean<?> bean) { Set<? extends AbstractBean<?, ?>> noLongerSpecializedBeans = specializedBeans.getValueIfPresent(bean); if (noLongerSpecializedBeans != null) { specializedBeans.invalidate(bean); for (AbstractBean<?, ?> noLongerSpecializedBean : noLongerSpecializedBeans) { // We should never get null here but just to be sure LongAdder count = specializedBeansMap.get(noLongerSpecializedBean); if (count != null) { count.decrement(); } } } }
public void vetoSpecializingBean(Bean<?> bean) { Set<? extends AbstractBean<?, ?>> noLongerSpecializedBeans = specializedBeans.getValueIfPresent(bean); if (noLongerSpecializedBeans != null) { specializedBeans.invalidate(bean); for (AbstractBean<?, ?> noLongerSpecializedBean : noLongerSpecializedBeans) { // We should never get null here but just to be sure LongAdder count = specializedBeansMap.get(noLongerSpecializedBean); if (count != null) { count.decrement(); } } } }
public void vetoSpecializingBean(Bean<?> bean) { Set<? extends AbstractBean<?, ?>> noLongerSpecializedBeans = specializedBeans.getValueIfPresent(bean); if (noLongerSpecializedBeans != null) { specializedBeans.invalidate(bean); for (AbstractBean<?, ?> noLongerSpecializedBean : noLongerSpecializedBeans) { // We should never get null here but just to be sure LongAdder count = specializedBeansMap.get(noLongerSpecializedBean); if (count != null) { count.decrement(); } } } }
public void vetoSpecializingBean(Bean<?> bean) { Set<? extends AbstractBean<?, ?>> noLongerSpecializedBeans = specializedBeans.getValueIfPresent(bean); if (noLongerSpecializedBeans != null) { specializedBeans.invalidate(bean); for (AbstractBean<?, ?> noLongerSpecializedBean : noLongerSpecializedBeans) { // We should never get null here but just to be sure LongAdder count = specializedBeansMap.get(noLongerSpecializedBean); if (count != null) { count.decrement(); } } } }
public void vetoSpecializingBean(Bean<?> bean) { Set<? extends AbstractBean<?, ?>> noLongerSpecializedBeans = specializedBeans.getValueIfPresent(bean); if (noLongerSpecializedBeans != null) { specializedBeans.invalidate(bean); for (AbstractBean<?, ?> noLongerSpecializedBean : noLongerSpecializedBeans) { // We should never get null here but just to be sure LongAdder count = specializedBeansMap.get(noLongerSpecializedBean); if (count != null) { count.decrement(); } } } }
public <T> void disposeBackedAnnotatedType(Class<T> rawType, String bdaId, String suffix) { TypeHolder<T> typeHolder = new TypeHolder<>(rawType, rawType, bdaId, suffix); BackedAnnotatedType<T> annotatedType = cast(this.backedAnnotatedTypes.getValueIfPresent(typeHolder)); if (annotatedType != null) { this.backedAnnotatedTypes.invalidate(typeHolder); this.slimAnnotatedTypesById.remove(annotatedType.getIdentifier()); this.enhancedAnnotatedTypes.invalidate(annotatedType); } }
public <T> void disposeBackedAnnotatedType(Class<T> rawType, String bdaId, String suffix) { TypeHolder<T> typeHolder = new TypeHolder<>(rawType, rawType, bdaId, suffix); BackedAnnotatedType<T> annotatedType = cast(this.backedAnnotatedTypes.getValueIfPresent(typeHolder)); if (annotatedType != null) { this.backedAnnotatedTypes.invalidate(typeHolder); this.slimAnnotatedTypesById.remove(annotatedType.getIdentifier()); this.enhancedAnnotatedTypes.invalidate(annotatedType); } }
public <T> void disposeBackedAnnotatedType(Class<T> rawType, String bdaId, String suffix) { TypeHolder<T> typeHolder = new TypeHolder<>(rawType, rawType, bdaId, suffix); BackedAnnotatedType<T> annotatedType = cast(this.backedAnnotatedTypes.getValueIfPresent(typeHolder)); if (annotatedType != null) { this.backedAnnotatedTypes.invalidate(typeHolder); this.slimAnnotatedTypesById.remove(annotatedType.getIdentifier()); this.enhancedAnnotatedTypes.invalidate(annotatedType); } }
public <T> void disposeBackedAnnotatedType(Class<T> rawType, String bdaId, String suffix) { TypeHolder<T> typeHolder = new TypeHolder<>(rawType, rawType, bdaId, suffix); BackedAnnotatedType<T> annotatedType = cast(this.backedAnnotatedTypes.getValueIfPresent(typeHolder)); if (annotatedType != null) { this.backedAnnotatedTypes.invalidate(typeHolder); this.slimAnnotatedTypesById.remove(annotatedType.getIdentifier()); this.enhancedAnnotatedTypes.invalidate(annotatedType); } }
public <T> void disposeBackedAnnotatedType(Class<T> rawType, String bdaId, String suffix) { TypeHolder<T> typeHolder = new TypeHolder<>(rawType, rawType, bdaId, suffix); BackedAnnotatedType<T> annotatedType = cast(this.backedAnnotatedTypes.getValueIfPresent(typeHolder)); if (annotatedType != null) { this.backedAnnotatedTypes.invalidate(typeHolder); this.slimAnnotatedTypesById.remove(annotatedType.getIdentifier()); this.enhancedAnnotatedTypes.invalidate(annotatedType); } }
public <T> void disposeBackedAnnotatedType(Class<T> rawType, String bdaId, String suffix) { TypeHolder<T> typeHolder = new TypeHolder<>(rawType, rawType, bdaId, suffix); BackedAnnotatedType<T> annotatedType = cast(this.backedAnnotatedTypes.getValueIfPresent(typeHolder)); if (annotatedType != null) { this.backedAnnotatedTypes.invalidate(typeHolder); this.slimAnnotatedTypesById.remove(annotatedType.getIdentifier()); this.enhancedAnnotatedTypes.invalidate(annotatedType); } }