org.jclouds.lifecycle
Class Closer
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Closer
public Closer()
addToClose
public void addToClose(Closeable toClose)
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Throws:
IOException
Copyright © 2009-2012 jclouds. All Rights Reserved.