Can I tell the bean provider (injector) to lazily load a bean?

14 views
Skip to first unread message

Asking Dumbquestions

unread,
Feb 13, 2013, 5:11:40 PM2/13/13
to swiz-fr...@googlegroups.com
I don't want to load up memory with beans that will not be used at app start-up, can I configure a bean to be lazily loaded?

Thanks!
adq

João Fernandes

unread,
Feb 13, 2013, 5:12:43 PM2/13/13
to null
if you define them as prototype , they won't be created till something will require it as a dependency.


--
You received this message because you are subscribed to the Google Groups "Swiz Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swiz-framewor...@googlegroups.com.
To post to this group, send email to swiz-fr...@googlegroups.com.
Visit this group at http://groups.google.com/group/swiz-framework?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--

João Fernandes

Asking Dumbquestions

unread,
Feb 13, 2013, 6:11:44 PM2/13/13
to swiz-fr...@googlegroups.com
Thx!
Reply all
Reply to author
Forward
0 new messages