3 Replies Latest reply on Apr 5, 2008 5:52 PM by Pete Muir

    Injection at component instantiation time using annotations

    Jens Augustsson Newbie


      Injection references at method invocation time is of course excellent, but I often also would like to inject references to Seam components, or some object from a Seam contexts, at component instantiation time.

      Currently I do this programatically in my @Create method by using Components.getInstance() and Contexts.getSessionContext().

      Is there any way to do this declaratively? Using annotations, not XML? Like @InAtInstantiation?