org.apache.camel.builder
Class ErrorHandlerBuilderSupport

java.lang.Object
  extended by org.apache.camel.builder.ErrorHandlerBuilderSupport
All Implemented Interfaces:
ErrorHandlerBuilder
Direct Known Subclasses:
DeadLetterChannelBuilder, ErrorHandlerBuilderRef, LoggingErrorHandlerBuilder, NoErrorHandlerBuilder

public abstract class ErrorHandlerBuilderSupport
extends Object
implements ErrorHandlerBuilder

Base class for builders of error handling.

Version:
$Revision: 51087 $

Constructor Summary
ErrorHandlerBuilderSupport()
           
 
Method Summary
 void addErrorHandlers(ExceptionType exception)
          Adds error handler for the given exception type
protected  void configure(ErrorHandlerSupport handler)
           
 List<ExceptionType> getExceptions()
           
 void setErrorHandlers(List<ExceptionType> exceptions)
          Adds the error handlers for the given list of exception types
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.camel.builder.ErrorHandlerBuilder
copy, createErrorHandler
 

Constructor Detail

ErrorHandlerBuilderSupport

public ErrorHandlerBuilderSupport()
Method Detail

addErrorHandlers

public void addErrorHandlers(ExceptionType exception)
Description copied from interface: ErrorHandlerBuilder
Adds error handler for the given exception type

Specified by:
addErrorHandlers in interface ErrorHandlerBuilder
Parameters:
exception - the exception to handle

configure

protected void configure(ErrorHandlerSupport handler)

getExceptions

public List<ExceptionType> getExceptions()

setErrorHandlers

public void setErrorHandlers(List<ExceptionType> exceptions)
Description copied from interface: ErrorHandlerBuilder
Adds the error handlers for the given list of exception types

Specified by:
setErrorHandlers in interface ErrorHandlerBuilder
Parameters:
exceptions - the list of exceptions to handle


Copyright © 2009 IONA Open Source Community. All Rights Reserved.