Results 1 to 1 of 1
-
Default initialization & destroy methods in Spring Framework
Spring container has features that it can auto detect your initialization and Destroy method if you follow same coding convention in project.
Destroy method callbacks are also similarly use the 'default-destroy-method'Java Code:<beans default-init-method="init"> <bean id="sampleService" class="org.abc.DefaultSample"> <property name="samplename" ref="sampleName" /> </bean> </beans>
Attribute on the top-level <beans/> element. So Spring IoC container will recognize a method called 'init' on beans as being the initialization method callback, and when a bean is being created and assembled, if the bean's class has such a method, it will be invoked at the appropriate time.
Similar Threads
-
how to learn spring framework
By m16k2002 in forum Web FrameworksReplies: 6Last Post: 04-06-2009, 02:14 PM -
How to use Initialization callbacks in Spring Framework
By Java Tip in forum Java TipReplies: 0Last Post: 03-31-2008, 10:16 AM -
Default initialization & destroy methods in Spring Framework
By JavaBean in forum Java TipReplies: 0Last Post: 09-28-2007, 12:51 PM -
How to use Initialization callbacks in Spring Framework
By JavaBean in forum Java TipReplies: 0Last Post: 09-28-2007, 12:49 PM -
What is weaving in Spring Framework
By JavaBean in forum Java TipReplies: 0Last Post: 09-26-2007, 08:30 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks