public abstract class ErrorHandlerReifier<T extends org.apache.camel.ErrorHandlerFactory> extends AbstractReifier
| Modifier and Type | Field and Description |
|---|---|
protected T |
definition |
camelContext, route| Modifier | Constructor and Description |
|---|---|
protected |
ErrorHandlerReifier(org.apache.camel.Route route,
T definition)
Utility classes should not have a public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExceptionPolicy(org.apache.camel.processor.errorhandler.ErrorHandlerSupport handlerSupport,
org.apache.camel.model.OnExceptionDefinition exceptionType) |
void |
configure(org.apache.camel.spi.ErrorHandler handler) |
abstract org.apache.camel.Processor |
createErrorHandler(org.apache.camel.Processor processor)
Creates the error handler
|
protected List<Class<? extends Throwable>> |
createExceptionClasses(org.apache.camel.model.OnExceptionDefinition exceptionType) |
org.apache.camel.processor.errorhandler.ExceptionPolicy |
createExceptionPolicy(org.apache.camel.model.OnExceptionDefinition def) |
static org.apache.camel.processor.errorhandler.RedeliveryPolicy |
createRedeliveryPolicy(org.apache.camel.model.RedeliveryPolicyDefinition definition,
org.apache.camel.CamelContext context,
org.apache.camel.processor.errorhandler.RedeliveryPolicy parentPolicy)
Note: Not for end users - this method is used internally by camel-blueprint
|
protected <T> T |
getBean(Class<T> clazz,
T bean,
String ref) |
protected org.apache.camel.Predicate |
getPredicate(org.apache.camel.Predicate pred,
String ref) |
static void |
registerReifier(Class<?> errorHandlerClass,
BiFunction<org.apache.camel.Route,org.apache.camel.ErrorHandlerFactory,ErrorHandlerReifier<? extends org.apache.camel.ErrorHandlerFactory>> creator) |
static ErrorHandlerReifier<? extends org.apache.camel.ErrorHandlerFactory> |
reifier(org.apache.camel.Route route,
org.apache.camel.ErrorHandlerFactory definition) |
asRef, createExpression, createExpression, createPredicate, createPredicate, findByType, findByTypeWithName, findSingleByType, getRegistry, lookup, lookupByName, lookupByNameAndType, mandatoryLookup, or, parse, parse, parseBoolean, parseBoolean, parseDuration, parseDuration, parseFloat, parseFloat, parseInt, parseInt, parseLong, parseLong, parseString, resolveEndpoint, unwrapprotected T extends org.apache.camel.ErrorHandlerFactory definition
protected ErrorHandlerReifier(org.apache.camel.Route route,
T definition)
public static void registerReifier(Class<?> errorHandlerClass, BiFunction<org.apache.camel.Route,org.apache.camel.ErrorHandlerFactory,ErrorHandlerReifier<? extends org.apache.camel.ErrorHandlerFactory>> creator)
public static ErrorHandlerReifier<? extends org.apache.camel.ErrorHandlerFactory> reifier(org.apache.camel.Route route, org.apache.camel.ErrorHandlerFactory definition)
public org.apache.camel.processor.errorhandler.ExceptionPolicy createExceptionPolicy(org.apache.camel.model.OnExceptionDefinition def)
public void addExceptionPolicy(org.apache.camel.processor.errorhandler.ErrorHandlerSupport handlerSupport,
org.apache.camel.model.OnExceptionDefinition exceptionType)
protected List<Class<? extends Throwable>> createExceptionClasses(org.apache.camel.model.OnExceptionDefinition exceptionType)
public abstract org.apache.camel.Processor createErrorHandler(org.apache.camel.Processor processor)
throws Exception
processor - the outer processorException - is thrown if the error handler could not be createdpublic void configure(org.apache.camel.spi.ErrorHandler handler)
public static org.apache.camel.processor.errorhandler.RedeliveryPolicy createRedeliveryPolicy(org.apache.camel.model.RedeliveryPolicyDefinition definition,
org.apache.camel.CamelContext context,
org.apache.camel.processor.errorhandler.RedeliveryPolicy parentPolicy)
protected org.apache.camel.Predicate getPredicate(org.apache.camel.Predicate pred,
String ref)
Apache Camel