Results 1 to 1 of 1
-
How to make Beans Lazily-instantiating beans
By default ApplicationContext implementations is to pre-instantiate all singleton beans at startup. But this is not desired always so you can disable this feature.
Java Code:<bean id="samplelazy" class="org.cpchmps.ExpensiveeBean" lazy-init="true"> <!—write properties here... --> </bean> <bean name="not.lazy" class="org.compchamps.NextBean"> <!—write properties here... --> </bean>
Similar Threads
-
beans
By mcal in forum New To JavaReplies: 0Last Post: 03-03-2008, 06:34 PM -
Using beans in JSP
By Java Tip in forum Java TipReplies: 0Last Post: 12-02-2007, 09:25 PM -
How to make Beans Lazily-instantiating beans
By JavaBean in forum Java TipReplies: 0Last Post: 09-26-2007, 08:41 PM -
XML beans
By John in forum XMLReplies: 2Last Post: 08-09-2007, 07:05 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks