Is there a spring lazy proxy factory in Spring?

前端 未结 3 645
旧时难觅i
旧时难觅i 2021-01-20 16:47

Wicket has this device called a lazy proxy factory. Given:


the idea is to auto-generate a prox

3条回答
  •  借酒劲吻你
    2021-01-20 17:34

    Spring singleton beans, the closest thing to what you want, are created when the spring context is initialized: http://static.springsource.org/spring/docs/2.0.x/reference/beans.html#beans-factory-scopes. So I believe the short answer is "no." You can implement your own scope to do this by extending the Spring classes quite easily, though.

提交回复
热议问题