Spring Destruction callbacks

Tutorials Shared by the Internet Community

Advertisements


Synopsis

Spring Destruction callbacks - Java Tutorials Corner

Statistics

  • Total Hits - 8374

  • Total Votes - 17 votes

  • Vote Up - 8 votes

  • Vote Down - 9 votes

  • Domain - www.javatutorialcorner.com

  • Category - JAVA/Spring

  • Submitted By - Appu T

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

Description

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 ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements