|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.guiceyfruit.support.Closers
public final class Closers
Some helper methods for working with the Closer
interface
Constructor Summary | |
---|---|
Closers()
|
Method Summary | |
---|---|
static void |
close(java.lang.Object key,
java.lang.Object objectToBeClosed,
Closer closer,
CloseErrors errors)
Closes the given object with the Closer if the object is not null |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Closers()
Method Detail |
---|
public static void close(java.lang.Object key, java.lang.Object objectToBeClosed, Closer closer, CloseErrors errors)
key
- the Key or String name of the object to be closedobjectToBeClosed
- the object that is going to be closedcloser
- the strategy used to close the objecterrors
- the handler of exceptions if they occur
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |