|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.guiceyfruit.support.CompositeCloser
public class CompositeCloser
A Composite implementation of Closer
Constructor Summary | |
---|---|
CompositeCloser(java.lang.Iterable<Closer> closers)
|
Method Summary | |
---|---|
void |
close(java.lang.Object object)
Closes the given object |
static Closer |
newInstance(java.util.Collection<Closer> closers)
Returns a Closer for the given lists of closer strategies
or returning null if the collection is empty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeCloser(java.lang.Iterable<Closer> closers)
Method Detail |
---|
public static Closer newInstance(java.util.Collection<Closer> closers)
Closer
for the given lists of closer strategies
or returning null if the collection is empty
public void close(java.lang.Object object) throws java.lang.Throwable
Closer
close
in interface Closer
object
- the object to be closed
java.lang.Exception
- if the close operation caused some exception to occur
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |