2 Replies Latest reply on Feb 10, 2017 5:02 AM by mkouba

    How do I simulate injecting the InjectionPoint in BeanConfigurator.produceWith?

    ljnelson

      I'm using the (very convenient) produceWith() method to simulate a producer method.

       

      I understand that this method takes a Function whose sole parameter is of type Instance<Object>, and that this is used to simulate producer method injection points.

       

      I'd like to obtain the InjectionPoint instance describing the actual site of injection, but instead if I say instance.select(InjectionPoint.class) I get some very bizarre InjectionPoint that appears to represent the Instance itself.

       

      How can I get the InjectionPoint representing the actual site of injection?