Package org.jboss.seam.solder.bean

Examples of org.jboss.seam.solder.bean.ImmutableInjectionPoint


    private Destination lookupDestination(AnnotatedParameter<?> ap) {
        log.debug("Looking up destination: " + ap);
        Set<Bean<?>> beans = bm.getBeans(Destination.class);
        Bean<?> bean = bm.resolve(beans);
        ImmutableInjectionPoint iip = new ImmutableInjectionPoint(ap, bm, bean, false, false);
        Object o = bm.getInjectableReference(iip, bm.createCreationalContext(bean));
        return (Destination) o;
    }
View Full Code Here


    private Destination lookupDestination(AnnotatedParameter<?> ap) {
        logger.debug("Looking up destination: " + ap);
        Set<Bean<?>> beans = bm.getBeans(Destination.class);
        Bean<?> bean = bm.resolve(beans);
        ImmutableInjectionPoint iip = new ImmutableInjectionPoint(ap, bm, bean, false, false);
        Object o = bm.getInjectableReference(iip, bm.createCreationalContext(bean));
        return (Destination) o;
    }
View Full Code Here

      this.annotatedMethod = method;
      this.bean = bean;
      injectionPoints = new InjectionPoint[this.method.getTypeParameters().length];
      for (int i = 0; i < injectionPoints.length; ++i)
      {
         injectionPoints[i] = new ImmutableInjectionPoint(method.getParameters().get(i), manager, bean, false, false);
      }
      Type mainType = method.getDeclaringType().getBaseType();
      HashSet<Annotation> mainClassQualifiers = new HashSet<Annotation>(declaringBeanQualifiers);
      Set<Bean<?>> beans = manager.getBeans(mainType, mainClassQualifiers.toArray(new Annotation[0]));
      if (beans.isEmpty())
View Full Code Here

            else if (annotation.annotationType().equals(GenericMarker.class))
            {
               it.remove();
            }
         }
         return new ImmutableInjectionPoint((AnnotatedParameter<?>) anotated, newQualifiers, injectionPoint.getBean(), injectionPoint.isTransient(), injectionPoint.isDelegate());
      }
      return injectionPoint;
   }
View Full Code Here

      {
         if (field.isAnnotationPresent(InjectGeneric.class))
         {
            if (AnnotatedMember.class.isAssignableFrom(field.getJavaMember().getType()))
            {
               injectedFields.put(field, new ImmutableInjectionPoint(field, Collections.<Annotation> singleton(annotatedMemberSyntheticProvider.get(identifier)), this, false, false));
            }
            else
            {
               injectedFields.put(field, new ImmutableInjectionPoint(field, filteredQualifiers, this, false, false));
            }
            if (!field.getJavaMember().isAccessible())
            {
               field.getJavaMember().setAccessible(true);
            }
View Full Code Here

TOP

Related Classes of org.jboss.seam.solder.bean.ImmutableInjectionPoint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.