Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-28-2007, 02:51 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
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.

Code:
<beans default-init-method="init"> <bean id="sampleService" class="org.abc.DefaultSample"> <property name="samplename" ref="sampleName" /> </bean> </beans>
Destroy method callbacks are also similarly use the 'default-destroy-method'.
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Default initialization & destroy methods in Spring Framework Java Tip Java Tips 0 03-31-2008 12:19 PM
How to use Initialization callbacks in Spring Framework Java Tip Java Tips 0 03-31-2008 12:16 PM
How to use Initialization callbacks in Spring Framework JavaBean Java Tips 0 09-28-2007 02:49 PM
What is weaving in Spring Framework JavaBean Java Tips 0 09-26-2007 10:30 PM
how to learn spring framework m16k2002 Web Frameworks 5 08-03-2007 03:13 PM


All times are GMT +3. The time now is 11:20 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org