org.apache.camel.guice.support.internal
Class CloseErrorsImpl

java.lang.Object
  extended by org.apache.camel.guice.support.internal.CloseErrorsImpl
All Implemented Interfaces:
CloseErrors

public class CloseErrorsImpl
extends Object
implements CloseErrors

The default implementation of @{link CloseErrors}

Version:

Constructor Summary
CloseErrorsImpl(Object source)
           
 
Method Summary
 void closeError(Object key, Object object, Exception cause)
          Notification of a close exception
 void throwIfNecessary()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloseErrorsImpl

public CloseErrorsImpl(Object source)
Method Detail

closeError

public void closeError(Object key,
                       Object object,
                       Exception cause)
Description copied from interface: CloseErrors
Notification of a close exception

Specified by:
closeError in interface CloseErrors
Parameters:
key - the key of the object being closed which is usually a Key or String
object - the object being closed
cause - the exception thrown when the close was attempted

throwIfNecessary

public void throwIfNecessary()
                      throws CloseFailedException
Specified by:
throwIfNecessary in interface CloseErrors
Throws:
CloseFailedException


Apache Camel