org.guiceyfruit.support
Class PreDestroyer

java.lang.Object
  extended by org.guiceyfruit.support.PreDestroyer

public class PreDestroyer
extends java.lang.Object

A class which is stored in a scope which is then used to close any objects in the same scope which have a shut down hook associated with them (such as @PreDestroy from JSR 250)

Version:
$Revision: 1.1 $

Constructor Summary
PreDestroyer()
           
 
Method Summary
 void addCloseTask(CloseTask closer)
           
 void close()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreDestroyer

public PreDestroyer()
Method Detail

addCloseTask

public void addCloseTask(CloseTask closer)

close

public void close()
           throws CloseFailedException
Throws:
CloseFailedException


Copyright © 2009. All Rights Reserved.