org.guiceyfruit.spring.support
Class DisposableBeanCloser

java.lang.Object
  extended by org.guiceyfruit.spring.support.DisposableBeanCloser
All Implemented Interfaces:
Closer

public class DisposableBeanCloser
extends java.lang.Object
implements Closer

A Closer which detects the Spring DisposableBean interface and invokes the DisposableBean.destroy() method when a scope is closed.

Version:
$Revision: 1.1 $

Constructor Summary
DisposableBeanCloser()
           
 
Method Summary
 void close(java.lang.Object object)
          Closes the given object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisposableBeanCloser

public DisposableBeanCloser()
Method Detail

close

public void close(java.lang.Object object)
           throws java.lang.Throwable
Description copied from interface: Closer
Closes the given object

Specified by:
close in interface Closer
Parameters:
object - the object to be closed
Throws:
java.lang.Exception - if the close operation caused some exception to occur
java.lang.Throwable


Copyright © 2011. All Rights Reserved.