|
From: <jue...@we...> - 2004-06-17 19:26:47
|
Any opinions on this? I've already prototypically implemented it, and = all tests pass. Just waiting whether there are any objections, or = different naming proposals :-) =20 Juergen =20 ________________________________ Von: spr...@li... im Auftrag = von j=FCrgen h=F6ller [werk3AT] Gesendet: Di 15.06.2004 23:41 An: spr...@li... Betreff: [Springframework-developer] Explicit reference to bean in = parent context There is an interesting feature request in our JIRA: http://opensource.atlassian.com/projects/spring/browse/SPR-166 Basically, a bean should be able to reference a bean of the same name in = the parent context, for example to proxy it. Currently, a reference to the same bean name will lead to a self = reference. I'm not keen on changing this, as there might be valid use = cases for such a configuration. I quite like Damon's suggestion: introduce a "parent" attribute for the = <ref> tag, as alternative to "bean" and "local". Such a reference = explicity refers to a bean in the parent context rather than in the = current one. I've already implemented this: was straightforward to do, with = RuntimeBeanReference having an optional "toParent" flag now. As this is fully backward-compatible and a nice (though probably rarely = used) enhancement, I don't mind including this in 1.0.3. Opinions? Juergen ------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |