org.apache.camel.guice.support
Class Closers
java.lang.Object
org.apache.camel.guice.support.Closers
public final class Closers
- extends Object
Some helper methods for working with the Closer
interface
- Version:
Method Summary |
static void |
close(Object key,
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 |
close
public static void close(Object key,
Object objectToBeClosed,
Closer closer,
CloseErrors errors)
- Closes the given object with the Closer if the object is not null
- Parameters:
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
Apache Camel