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

    • Feature Request
    • Resolution: Obsolete
    • Major
    • 2.1 (Discussion)
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: