org.apache.camel.guice.support
Class CompositeCloser

java.lang.Object
  extended by org.apache.camel.guice.support.CompositeCloser
All Implemented Interfaces:
Closer

public class CompositeCloser
extends Object
implements Closer

A Composite implementation of Closer

Version:

Constructor Summary
CompositeCloser(Iterable<Closer> closers)
           
 
Method Summary
 void close(Object object)
          Closes the given object
static Closer newInstance(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

CompositeCloser

public CompositeCloser(Iterable<Closer> closers)
Method Detail

close

public void close(Object object)
           throws Throwable
Description copied from interface: Closer
Closes the given object

Specified by:
close in interface Closer
Parameters:
object - the object to be closed
Throws:
Exception - if the close operation caused some exception to occur
Throwable

newInstance

public static Closer newInstance(Collection<Closer> closers)
Returns a Closer for the given lists of closer strategies or returning null if the collection is empty



Apache Camel