Spring Destruction callbacks

Tutorials Shared by the Internet Community


  Top Tutorials     New Tutorials     Submit     Login     Register  

Spring Destruction callbacks

Spring Destruction callbacks - Java Tutorials Corner
  • Total Hits: 7587

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating


  • Total Votes: 9 votes

  • Category: JAVA/Spring

  • Submitted on: 2014-03-22 10:40:36

  • Submitted By: Appu T

  • Set as Favorite


In this tutorial we are going to see about Spring Life cycle Destruction callbacks with example program. Implementing the org.springframework.beans.factory.DisposableBean interface allows a bean to get a callback when the container containing it is destroyed. The DisposableBean interface specifies a single method: void destroy() throws Exception; It is recommended that you do not use the DisposableBean callback interface because it unnecessarily couples the code to Spring. Alternatively, use the @PreDestroy annotation - See more at: http://www.javatutorialcorner.com/search/label/Spring    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 22.22%  2
 Two starsTwo star  Vote LeftVote MiddleVote Right 22.22%  2
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 22.22%  2
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 22.22%  2
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 11.11%  1

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.