About IdP V2 and spring versions
Rod Widdowson
rdw at steadingsoftware.com
Thu Jan 15 12:09:18 EST 2015
> Can we even fix it? Maybe by a bean factory post processor or something?
It turns out that you cannot. As far as I can work out there is nowhere we
can turn off this aliasing without re-implementing the parse() method in the
Spring class AbstractBeanDefinitionParser and to my mind that way madness
lies. I suppose we could strip the attribute from the DOM as we parse it so
that Spring doesn't find it, but that feels like even worse madness..
AFAICS once an alias is registered it ejects the existing bean defining that
name, so post processing is too late (I think). You can turn the duplicate
detection into a failure but I fear that this may get pretty grubby. I'll
investigate.
By the way, this can also happen in data connectors (RDBMS) and metadata
resolvers (scripted) - these also have the "name" attribute.
Yuck.
More information about the dev
mailing list