/** * Returns an unmodifiable list of dependent instances. */ public List<ContextualInstance<?>> getDependentInstances() { return WeldCollections.immutableListView(dependentInstances); }
/** * The beans registered with the Web Bean manager which are resolvable. Does not include interceptor and decorator beans * * @return The list of known beans */ public List<Bean<?>> getBeans() { return WeldCollections.immutableListView(enabledBeans); }
/** * Returns an unmodifiable list of dependent instances. */ public List<ContextualInstance<?>> getDependentInstances() { return WeldCollections.immutableListView(dependentInstances); }
/** * The beans registered with the Web Bean manager which are resolvable. Does not include interceptor and decorator beans * * @return The list of known beans */ public List<Bean<?>> getBeans() { return WeldCollections.immutableListView(enabledBeans); }
/** * Returns an unmodifiable list of dependent instances. */ public List<ContextualInstance<?>> getDependentInstances() { return WeldCollections.immutableListView(dependentInstances); }
/** * Returns an unmodifiable list of dependent instances. */ public List<ContextualInstance<?>> getDependentInstances() { return WeldCollections.immutableListView(dependentInstances); }
/** * The beans registered with the Web Bean manager which are resolvable. Does not include interceptor and decorator beans * * @return The list of known beans */ public List<Bean<?>> getBeans() { return WeldCollections.immutableListView(enabledBeans); }
/** * The beans registered with the Web Bean manager which are resolvable. Does not include interceptor and decorator beans * * @return The list of known beans */ public List<Bean<?>> getBeans() { return WeldCollections.immutableListView(enabledBeans); }
/** * Returns an unmodifiable list of dependent instances. */ public List<ContextualInstance<?>> getDependentInstances() { return WeldCollections.immutableListView(dependentInstances); }
/** * The beans registered with the Web Bean manager which are resolvable. Does not include interceptor and decorator beans * * @return The list of known beans */ public List<Bean<?>> getBeans() { return WeldCollections.immutableListView(enabledBeans); }
List<Bean<?>> getSharedBeans() { return WeldCollections.immutableListView(sharedBeans); }
public List<Decorator<?>> getDecorators() { return WeldCollections.immutableListView(decorators); }
List<Bean<?>> getSharedBeans() { return WeldCollections.immutableListView(sharedBeans); }
public List<Interceptor<?>> getInterceptors() { return WeldCollections.immutableListView(interceptors); }
@Override public List<Set<MethodInjectionPoint<?, ?>>> create() { Collections.reverse(result); // because we want methods that are lower in the hierarchy to be called first return WeldCollections.immutableListView(result); } }
@Override public List<AnnotatedMethod<? super T>> create() { Collections.reverse(result); return WeldCollections.immutableListView(result); }
@Override protected List<AnnotatedParameter<X>> initParameters(Method method, SharedObjectCache sharedObjectCache) { final Type[] genericParameterTypes = method.getGenericParameterTypes(); List<AnnotatedParameter<X>> parameters = new ArrayList<AnnotatedParameter<X>>(genericParameterTypes.length); Annotation[][] parameterAnnotations = method.getParameterAnnotations(); for (int i = 0; i < genericParameterTypes.length; i++) { Type parameterType = genericParameterTypes[i]; parameters.add(BackedAnnotatedParameter.of(parameterType, parameterAnnotations[i], i, this, sharedObjectCache)); } return immutableListView(parameters); }
protected ResourceInjector(EnhancedAnnotatedType<T> type, Bean<T> bean, BeanManagerImpl beanManager) { super(type, bean, beanManager); this.resourceInjectionsHierarchy = immutableListView(ResourceInjectionFactory.instance().getResourceInjections(bean, type, beanManager)); }
public UnbackedAnnotatedMethod(Type baseType, Set<Type> typeClosure, Set<Annotation> annotations, UnbackedAnnotatedType<X> declaringType, List<AnnotatedParameter<X>> originalParameters, Method method, SharedObjectCache cache) { super(baseType, typeClosure, cache.getSharedSet(annotations), declaringType); this.method = method; List<AnnotatedParameter<X>> parameters = new ArrayList<AnnotatedParameter<X>>(originalParameters.size()); for (AnnotatedParameter<X> originalParameter : originalParameters) { parameters.add(new UnbackedAnnotatedParameter<X>(originalParameter.getBaseType(), originalParameter.getTypeClosure(), cache.getSharedSet(originalParameter.getAnnotations()), originalParameter.getPosition(), this)); } this.parameters = immutableListView(parameters); }
public UnbackedAnnotatedConstructor(Type baseType, Set<Type> typeClosure, Set<Annotation> annotations, UnbackedAnnotatedType<X> declaringType, List<AnnotatedParameter<X>> originalParameters, Constructor<X> constructor, SharedObjectCache cache) { super(baseType, typeClosure, cache.getSharedSet(annotations), declaringType); this.constructor = constructor; List<AnnotatedParameter<X>> parameters = new ArrayList<AnnotatedParameter<X>>(originalParameters.size()); for (AnnotatedParameter<X> originalParameter : originalParameters) { parameters.add(new UnbackedAnnotatedParameter<X>(originalParameter.getBaseType(), originalParameter.getTypeClosure(), cache.getSharedSet(originalParameter.getAnnotations()), originalParameter.getPosition(), this)); } this.parameters = immutableListView(parameters); }