I am using Spring's @Component
annotation to configure many of the beans in my Spring 3.0 application. I would like to know if it's possible to construct some of these beans lazily - especially the prototype
beans?
views:
246answers:
2
+2
A:
Lazy initialization isn't an option in the context of prototype-scoped beans. Those beans are instantiated and initialized on demand every time something asks for them, so they are, by nature, lazily initialized.
skaffman
2010-03-02 20:46:02