RE: [picocontainer-dev] config parameter - work started
Konstantin Priblouda <kpriblouda-/[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
--- Jörg Schaible <[email protected]> > XStream simply does not register all converters in > the package. If you need ISO8601 formats, you can > register them yourself and they take precedence. I discovered that those need external dependency ( joda ) -> disabled them for now. But some kind of configurability would be very nice. > > Of course I would prefer some > > xsrtream mapper. > > Well, the approach is interesting, but we're back at > configuration ... which converters should be used > (and some of them can be configured). We might use > some dependency injection framework ... <g> SCNR something simpler perhaps ;) > The converter is not used by default. It's simply > there for your convenience if you have a class that > matches this pattern. Therefore it is explicitly > tied to a class. And we're back to configuration > again ... yep. now I deregistered it, and used as fallback alternative. > Well, I think the whole purpose of parameters is to > assign special values as destinct "dependencies". > This is what components separates parameters in > terms of "dependency". While the idea to use > XStream's single value converters is nice, it is > possibly more sophisticated than necessary. the question is, whether we like to give user full freedom or constraint configuration to some set of defined classes out of java.lang, java.io etc. while we lack idea about configuration, we can stick with available converters for now. And I really do not like to invent yet another string-to-something converter framework - there is a plenty already. And while we are at it - we could utilise those converters also in xml configuration. ( it would be disfficult to engage xstream fully, but converters could be used to populate objects ) regards, ----[ Konstantin Pribluda http://www.pribluda.de ]---------------- JTec quality components: http://www.pribluda.de/projects/ ____________________________________________________________________________________ Check out the hottest 2008 models today at Yahoo! Autos. http://autos.yahoo.com/new_cars.html --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email