2 Replies Latest reply on Aug 31, 2010 2:25 AM by alfredpeterson

    Outjection via Producer ?

    nimo22

      I find out that there is no direct Outjection (Seam @Out) in Weld.


      For example:



      In Weld:


      @SessionScoped
      class A{
      
      @Inject B b;
      // @Outject B b; // @Outjecting is not possible
      
      }
      
      @SessionScoped
      class B{
      
      }
      
      @RequestScoped
      class C{
      
      @Inject B b;
      
      }



      When instantiating C I want to use the Instance b which is already outjected from class A. How can I do that? Should I use a @Producer in Class C for that ?