org.apache.camel.guice.support
Class Closers

java.lang.Object
  extended by 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
 

Method Detail

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 closed
objectToBeClosed - the object that is going to be closed
closer - the strategy used to close the object
errors - the handler of exceptions if they occur


Apache Camel