1 Reply Latest reply on Aug 20, 2007 7:55 AM by porcherg

    eager initialization xml docs

    tom.baeyens

      in WireContext, I added

      TODO add a reference to the description of the XML grammar for eager initialization


      I would like a reference to be added to the section where the eager initialization is explained. I don't know exactle what the proper place is.

      But if I recall correctly, I think it only objects and refs that could have eager initialization, right ? in that case, it's probably best to add the section to ObjectBinding and refer to it from WireContext and RefBinding

        • 1. Re: eager initialization xml docs
          porcherg

          I think all objects can be eagerly initialized (that is to say created with the context)

          If you speak about the delayed initialization, all Initializable descriptors can be delayed or not. Objects implement Initializable, but all collection descriptors implements this as well.

          The ReferenceDescriptor does not implement Initializable, but as it can reference an Initializable descriptor, we can specify if the referred object initialization can be delayed or not.

          I added the explanation of init attribute in WireParser because it's the entry point for the xml grammar (and because it's in this class that the attribute is parsed).

          I tried to explain the initialization of Descriptors in WireContext, and the xml attribute in WireParser. This way, we have a separation beween the xml parsing and the descriptor mechanism.

          Maybe we can move it somewhere else.

          I have the same problem with attributes that are used in all xml elements (such as name), or special elements such as method arguments.
          Maybe we can find a better way to centralize all this than putting it in WireParser ?

          regards,
          Guillaume