|
From: Tim D. <sub...@re...> - 2005-06-27 08:05:36
|
I understand that getType on any factory-method type bean returns Null,=20 implying that autowire by type wouldn't work with one of these. Getting=20 the getType to check the type of the bean returned by factory-method is=20 not that difficult (just a bit of introspection), but isn't (as I=20 understand it) underway at present. This is paraphrased & deduced from a recent comment on JIRA http://opensource.atlassian.com/projects/spring/browse/SPR-1011 Tim Keith Donald wrote: > Autowire by type on a factory-bean factory-method doesn=92t seem=20 > supported. I noticed this in a dependency injection-enabled spring=20 > test, where I wanted to auto-inject the result of a factory method.=20 > Would this be difficult to do? >=20 > =20 >=20 > Keith >=20 > =20 >=20 > --=20 > Keith Donald > Interface21 Principal Consultant >=20 > http://www.springframework.com <http://www.springframework.com/> >=20 > =20 >=20 |