Unreasonable to add individual bean-ref support to connectors?

Cantor, Scott cantor.2 at osu.edu
Tue Oct 21 16:27:22 EDT 2014


Does it seem reasonable in the V2Parser classes for the connectors to have
the ability to inject property references to bean IDs on a piecemeal basis
instead of requiring the whole connector to be Spring-wired?

e.g. a dataSourceRef attribute that if set causes the
Container|ApplicationManaged elements to be ignored in favor of adding a
property by reference to whatever's in the attribute. The namespace of
those references would be global, but that's not a big deal.

Is there a reason we shouldn't do that? I'm particularly interested in
that because it means somebody can inject a custom instance of some public
API we provide without having to wire up implementation classes.

We're headed toward a lot of "FooEx" or "Foo2" Microsoft COM-style
evolution of the API if people have to wire anything with "impl" in the
package name in a user-controlled file.

-- Scott



More information about the dev mailing list