public abstract class ErrorHandlerReifier<T extends ErrorHandlerBuilderSupport> 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,
OnExceptionDefinition exceptionType) |
void |
configure(org.apache.camel.processor.ErrorHandler handler) |
abstract org.apache.camel.Processor |
createErrorHandler(org.apache.camel.Processor processor)
Creates the error handler
|
protected List<Class<? extends Throwable>> |
createExceptionClasses(OnExceptionDefinition exceptionType) |
org.apache.camel.processor.errorhandler.ExceptionPolicy |
createExceptionPolicy(OnExceptionDefinition def) |
static org.apache.camel.processor.errorhandler.RedeliveryPolicy |
createRedeliveryPolicy(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 boolean |
isErrorHandlerFactoryConfigured(String ref)
Returns whether a specific error handler builder has been configured or
not.
|
protected static org.apache.camel.ErrorHandlerFactory |
lookupErrorHandlerFactory(org.apache.camel.CamelContext camelContext) |
static org.apache.camel.ErrorHandlerFactory |
lookupErrorHandlerFactory(org.apache.camel.Route route,
String ref)
Lookup the error handler by the given ref
|
static org.apache.camel.ErrorHandlerFactory |
lookupErrorHandlerFactory(org.apache.camel.Route route,
String ref,
boolean mandatory)
Lookup the error handler by the given 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 ErrorHandlerBuilderSupport 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(OnExceptionDefinition def)
public static org.apache.camel.ErrorHandlerFactory lookupErrorHandlerFactory(org.apache.camel.Route route, String ref)
route - the route contextref - reference id for the error handlerpublic static org.apache.camel.ErrorHandlerFactory lookupErrorHandlerFactory(org.apache.camel.Route route, String ref, boolean mandatory)
route - the routeref - reference id for the error handlermandatory - whether the error handler must exists, if not a
NoSuchBeanException is thrownprotected static org.apache.camel.ErrorHandlerFactory lookupErrorHandlerFactory(org.apache.camel.CamelContext camelContext)
public static boolean isErrorHandlerFactoryConfigured(String ref)
public void addExceptionPolicy(org.apache.camel.processor.errorhandler.ErrorHandlerSupport handlerSupport, OnExceptionDefinition exceptionType)
protected List<Class<? extends Throwable>> createExceptionClasses(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.processor.ErrorHandler handler)
public static org.apache.camel.processor.errorhandler.RedeliveryPolicy createRedeliveryPolicy(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