4 Replies Latest reply on Oct 17, 2008 12:08 PM by lucky fin

    Question about Injection mechanism

    lucky fin Newbie

      Hi,


      Suppose I have two components in conversation context.


      The first one has inside this injection


      @In(required=false)
      private String field1;


      the second has


      @In(required=true)
      private String field1;


      suppose now that I make an invocation on the first component, and the field1 is not available in any context.
      Now I think that no exception should arise, however the second component (that I'm not invoking absolutely) causes an exception about field1, that is required...


      I think that I've not understood the injection lifecycle, someone can explain me this strange behaviour?


      Thank you in advance
      Luciano