org.apache.commons.fileupload.servlet
Class FileCleanerCleanup

java.lang.Object
  extended by org.apache.commons.fileupload.servlet.FileCleanerCleanup
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

public class FileCleanerCleanup
extends java.lang.Object
implements javax.servlet.ServletContextListener

A servlet context listener, which ensures that the FileCleaner's reaper thread is terminated, when the web application is destroyed.


Constructor Summary
FileCleanerCleanup()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent sce)
          Called when the web application is being destroyed.
 void contextInitialized(javax.servlet.ServletContextEvent sce)
          Called when the web application is initialized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileCleanerCleanup

public FileCleanerCleanup()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent sce)
Called when the web application is initialized. Does nothing.

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
Parameters:
sce - The servlet context (ignored).

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent sce)
Called when the web application is being destroyed. Calls FileCleaner.exitWhenFinished().

Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener
Parameters:
sce - The servlet context (ignored).


Copyright © 2002-2007 Apache Software Foundation. All Rights Reserved.