Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-714

No way to access the underlying bean in a producer when using BeanConfigurator

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Major Major
    • 2.1 (Discussion)
    • None
    • None
    • None

      I was reusing an example the Weld guys pointed me at.

      InjectionPoint ip = (InjectionPoint)bm.getInjectableReference(new EmptyInjectionPoint(be...), cc);
      

      The problem is that I'm using the configurator to create the bean, and the resulting function for the producer doesn't have access to the bean that was created.

      abd.addBean()
                          .addQualifiers(new ClaimLiteral("", Claims.UNKNOWN))
                          .addType(type)
                          .scope(Dependent.class)
                          .createWith(ClaimProducer.INSTANCE);
      

      So because of this, I have no way to get the injection point.

            Unassigned Unassigned
            meetoblivion_jira John Ament (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: