A base class for implementing {@link InjectionPoint}. The attributes are immutable, and collections are defensively copied on instantiation.
135136137138139140141142143144145
{ List<InjectionPoint> injectionPoints = new ArrayList<InjectionPoint>(); for (AnnotatedParameter<X> parameter : method.getParameters()) { InjectionPoint injectionPoint = new ImmutableInjectionPoint(parameter, beanManager, declaringBean, false, false); injectionPoints.add(injectionPoint); } return injectionPoints; }
252253254255256257258259260261262
for (AnnotatedParameter<?> param : handler.getParameters()) { if (!param.equals(handlerParameter)) { injectionPoints.add( new ImmutableInjectionPoint(param, bm, getDeclaringBean(), false, false)); } } } return new HashSet<InjectionPoint>(injectionPoints);
264265266267268269270271272273274
for (AnnotatedParameter<?> param : handler.getParameters()) { if (!param.equals(handlerParameter)) { injectionPoints.add( new ImmutableInjectionPoint(param, getBeanManager(), getBean(), false, false)); } } } return new HashSet<InjectionPoint>(injectionPoints);