Reverse attribute mapping..
Rod Widdowson
rdw at steadingsoftware.com
Tue Aug 6 12:31:19 EDT 2013
> >It looks as though the p-namespace syntax can only be used for strings,
or
> >references to beans defined elsewhere. The last would seem to provide
> >little benefit here.
>
> Depends if the value mappers are stateless. They could be singletons that
> would be defined all at once and then referenced.
I had thought of that. It turns out that they do carry state - the log
prefix (which Is inherited from the parent mapper). This makes logging when
we get format errors rather more informative, but things can be changed. My
2 cents worth is that the abstract definition seems to do the job well
enough.
> There is always the approach I tend to use, have an XML "list", which is
> just space-delimited, and parse it after. If the normal case is for one
> entry, that might be simpler, though IIRC, Spring may actually support
> converting a single string input into a list of one. That might be ok too.
I'll take a poke at it and report back. It would certainly make the config
prettier.
R
More information about the dev
mailing list