org.jclouds.lifecycle
Class Closer

java.lang.Object
  extended by org.jclouds.lifecycle.Closer
All Implemented Interfaces:
Closeable

@Singleton
public class Closer
extends Object
implements Closeable

This will close objects in the reverse order that they were added.

Author:
Adrian Cole

Constructor Summary
Closer()
           
 
Method Summary
 void addToClose(Closeable toClose)
           
 void close()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Closer

public Closer()
Method Detail

addToClose

public void addToClose(Closeable toClose)

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException


Copyright © 2009-2011 jclouds. All Rights Reserved.