以下链接为此类情况提供了替代解决方案:
- http://whyjava.wordpress.com/2010/10/30/spring-scoped-proxy-beans-an-alternative-to-method-injection/
- http://benkiew.wordpress.com/2012/04/22/spring-2-5-x-create-prototype-instances-from-pre/
第一个链接谈论添加到Foo:
@Component@Scope(proxyMode = ScopedProxyMode.TARGET_CLASS, value = "prototype")class Foo
每次调用都会导致一个新实例。



