5 Replies Latest reply on Nov 20, 2009 7:52 AM by Nicklas Karlsson

    parameter injection

    Arbi Sookazian Master

      from ref doc:



      CDI also supports parameter injection for some other methods that are invoked by the container. For instance, parameter injection is supported for producer methods:

      @Produces Checkout createCheckout(ShoppingCart cart) {
          return new Checkout(cart);
      }




      This is a case where the @Inject annotation is not required at the injection point.

      Plz explain why/how this works.  Not sure how I'd know if injection is involved in this context or not by just looking at this method...