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

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • 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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: