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

    Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.1 (Discussion)
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                meetoblivion John Ament
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: