org.jboss.virtual.plugins.context.zip
Class ZipFileLockReaper

java.lang.Object
  extended by org.jboss.virtual.plugins.context.zip.ZipFileLockReaper

public class ZipFileLockReaper
extends Object

A monitoring object that closes ZipFiles when they haven't been used for a while

Version:
$Revision: 1.0 $
Author:
Marko Strukelj

Method Summary
 void deleteFile(org.jboss.virtual.plugins.context.zip.ZipFileWrapper zipFileWrapper)
           
static ZipFileLockReaper getInstance()
          Factory method to be used to retrieve reference to ZipFileLockReaper
 void register(org.jboss.virtual.plugins.context.zip.ZipFileWrapper w)
          Register a ZipFileWrapper instance with this reaper
 void unregister(org.jboss.virtual.plugins.context.zip.ZipFileWrapper w)
          Unregister a ZipFileWrapper instance from this reaper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ZipFileLockReaper getInstance()
Factory method to be used to retrieve reference to ZipFileLockReaper


register

public void register(org.jboss.virtual.plugins.context.zip.ZipFileWrapper w)
Register a ZipFileWrapper instance with this reaper

Parameters:
w - wrapper to register

unregister

public void unregister(org.jboss.virtual.plugins.context.zip.ZipFileWrapper w)
Unregister a ZipFileWrapper instance from this reaper

Parameters:
w - wrapper to unregister

deleteFile

public void deleteFile(org.jboss.virtual.plugins.context.zip.ZipFileWrapper zipFileWrapper)
                throws IOException
Throws:
IOException


Copyright © 2010 JBoss, A division of Red Hat, Inc. All Rights Reserved.