org.codehaus.groovy.control
Class Janitor

java.lang.Object
  extended by org.codehaus.groovy.control.Janitor
All Implemented Interfaces:
HasCleanup

public class Janitor
extends java.lang.Object
implements HasCleanup

An agent that can be used to defer cleanup operations to a later time. Users much implement the HasCleanup interface.

Version:
$Id: Janitor.java 10601 2008-01-25 01:11:39Z blackdrag $
Author:
Chris Poirier

Field Summary
private  java.util.Set pending
           
 
Constructor Summary
Janitor()
           
 
Method Summary
 void cleanup()
           
 void register(HasCleanup object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pending

private final java.util.Set pending
Constructor Detail

Janitor

public Janitor()
Method Detail

register

public void register(HasCleanup object)

cleanup

public void cleanup()
Specified by:
cleanup in interface HasCleanup


Copyright © ${year} The Codehaus. All Rights Reserved.