@Override public Set<?> apply(Set<?> from) { return WeldCollections.immutableSetView(from); } });
@Deprecated public Set<Annotation> getQualifiers() { Set<Annotation> qualifiers = getMetaAnnotations(Qualifier.class); if (qualifiers.size() > 0) { return WeldCollections.immutableSetView(qualifiers); } else { return DEFAULT_QUALIFIERS; } }
@Override public <X> Set<SlimAnnotatedType<X>> get(Class<X> type) { return WeldCollections.immutableSetView(typesByClass.getCastValue(type)); }
@Deprecated public Set<Annotation> getQualifiers() { Set<Annotation> qualifiers = getMetaAnnotations(Qualifier.class); if (qualifiers.size() > 0) { return WeldCollections.immutableSetView(qualifiers); } else { return DEFAULT_QUALIFIERS; } }
@Deprecated public Set<Annotation> getQualifiers() { Set<Annotation> qualifiers = getMetaAnnotations(Qualifier.class); if (qualifiers.size() > 0) { return WeldCollections.immutableSetView(qualifiers); } else { return DEFAULT_QUALIFIERS; } }
@Deprecated public Set<Annotation> getQualifiers() { Set<Annotation> qualifiers = getMetaAnnotations(Qualifier.class); if (qualifiers.size() > 0) { return WeldCollections.immutableSetView(qualifiers); } else { return DEFAULT_QUALIFIERS; } }
@Override public <X> Set<SlimAnnotatedType<X>> get(Class<X> type) { return WeldCollections.immutableSetView(typesByClass.getCastValue(type)); }
@Override public <X> Set<SlimAnnotatedType<X>> get(Class<X> type) { return WeldCollections.immutableSetView(typesByClass.getCastValue(type)); }
@Deprecated public Set<Annotation> getQualifiers() { Set<Annotation> qualifiers = getMetaAnnotations(Qualifier.class); if (qualifiers.size() > 0) { return WeldCollections.immutableSetView(qualifiers); } else { return DEFAULT_QUALIFIERS; } }
@Override public <X> Set<SlimAnnotatedType<X>> get(Class<X> type) { return WeldCollections.immutableSetView(typesByClass.getCastValue(type)); }
@Override public <X> Set<SlimAnnotatedType<X>> get(Class<X> type) { return WeldCollections.immutableSetView(typesByClass.getCastValue(type)); }
public Set<Type> getInterfaceClosure() { Set<Type> interfaces = new HashSet<Type>(); for (Type t : getTypeClosure()) { if (Reflections.getRawType(t).isInterface()) { interfaces.add(t); } } return WeldCollections.immutableSetView(interfaces); }
public Set<Type> getInterfaceClosure() { Set<Type> interfaces = new HashSet<Type>(); for (Type t : getTypeClosure()) { if (Reflections.getRawType(t).isInterface()) { interfaces.add(t); } } return WeldCollections.immutableSetView(interfaces); }
protected void initNonBindingMembers(EnhancedAnnotation<T> annotatedAnnotation) { Set<EnhancedAnnotatedMethod<?, ?>> enhancedMethods = annotatedAnnotation.getMembers(Nonbinding.class); if (enhancedMethods.isEmpty()) { this.nonBindingMembers = Collections.emptySet(); } else { Set<AnnotatedMethod<?>> nonBindingMembers = new HashSet<AnnotatedMethod<?>>(); for (EnhancedAnnotatedMethod<?, ?> method : enhancedMethods) { nonBindingMembers.add(method.slim()); } this.nonBindingMembers = immutableSetView(nonBindingMembers); } }
public Set<Type> getInterfaceClosure() { Set<Type> interfaces = new HashSet<Type>(); for (Type t : getTypeClosure()) { if (Reflections.getRawType(t).isInterface()) { interfaces.add(t); } } return WeldCollections.immutableSetView(interfaces); }
public Set<Type> getInterfaceClosure() { Set<Type> interfaces = new HashSet<Type>(); for (Type t : getTypeClosure()) { if (Reflections.getRawType(t).isInterface()) { interfaces.add(t); } } return WeldCollections.immutableSetView(interfaces); }
public Set<Type> getInterfaceClosure() { Set<Type> interfaces = new HashSet<Type>(); for (Type t : getTypeClosure()) { if (Reflections.getRawType(t).isInterface()) { interfaces.add(t); } } return WeldCollections.immutableSetView(interfaces); }
@Override protected Set<Type> computeValue() { return immutableSetView(new HierarchyDiscovery(type).getTypeClosure()); }
public SyntheticDecorator(BeanAttributes<T> attributes, Class<T> beanClass, InjectionTargetFactory<T> factory, BeanManagerImpl manager) { super(attributes, beanClass, factory, manager); this.delegate = identifyDelegateInjectionPoint(getInjectionPoints()); this.decoratedTypes = immutableSetView((getDecoratedTypes(attributes.getTypes()))); }
protected BasicInjectionTarget(EnhancedAnnotatedType<T> type, Bean<T> bean, BeanManagerImpl beanManager, Injector<T> injector, LifecycleCallbackInvoker<T> invoker, Instantiator<T> instantiator) { this.beanManager = beanManager; this.type = type.slim(); this.injector = injector; this.invoker = invoker; final Set<InjectionPoint> injectionPoints = new HashSet<InjectionPoint>(); checkType(type); this.injector.registerInjectionPoints(injectionPoints); if (instantiator != null) { this.instantiator = instantiator; } else { this.instantiator = initInstantiator(type, bean, beanManager, injectionPoints); } this.injectionPoints = WeldCollections.immutableSetView(injectionPoints); checkDelegateInjectionPoints(); }