Re: Proposal for component parameters handling in XML
Jon Tirsen <[email protected]> Fri, 06 Feb 2004 09:02:58 +0000
| Newsgroups | gmane.comp.java.nanocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
Konstantin Priblouda wrote: >--- Jon Tirsén <jon_tirsen-/[email protected]> wrote: > > >>Nah, remove the type information from both parameter >>and dependency. They are provided by the reflection >>API so there's no need to specify them in two >>places. >>In fact, it could even cause problems. >> >> > >Parameter is constant parameter. Which is not only >string - ConstantParameter needs object, and you need >to >know what class you are instantiating.... > > Yup, and you know that by reflecting on the class of the component. Hmm... could be a bit complicated to implement, I see... >And ComponentParameter needs either class, or object - > >object got to be instantiated somehow... > > Class or object? When you are building a container using XML all keys are strings, so the key is always a string, no need to arse.