public abstract class ErrorHandlerReifier<T extends ErrorHandlerBuilderSupport> extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ERROR_HANDLER_BUILDER |
protected T |
definition |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.apache.camel.spi.RouteContext routeContext,
org.apache.camel.processor.ErrorHandler handler) |
abstract org.apache.camel.Processor |
createErrorHandler(org.apache.camel.spi.RouteContext routeContext,
org.apache.camel.Processor processor)
Creates the error handler
|
static org.apache.camel.processor.errorhandler.ExceptionPolicy |
createExceptionPolicy(OnExceptionDefinition def,
org.apache.camel.spi.RouteContext routeContext) |
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
|
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.spi.RouteContext routeContext,
String ref)
Lookup the error handler by the given ref
|
static org.apache.camel.ErrorHandlerFactory |
lookupErrorHandlerFactory(org.apache.camel.spi.RouteContext routeContext,
String ref,
boolean mandatory)
Lookup the error handler by the given ref
|
static void |
registerReifier(Class<?> errorHandlerClass,
Function<org.apache.camel.ErrorHandlerFactory,ErrorHandlerReifier<? extends org.apache.camel.ErrorHandlerFactory>> creator) |
static ErrorHandlerReifier<? extends org.apache.camel.ErrorHandlerFactory> |
reifier(org.apache.camel.ErrorHandlerFactory definition) |
public static final String DEFAULT_ERROR_HANDLER_BUILDER
protected T extends ErrorHandlerBuilderSupport definition
public static void registerReifier(Class<?> errorHandlerClass, Function<org.apache.camel.ErrorHandlerFactory,ErrorHandlerReifier<? extends org.apache.camel.ErrorHandlerFactory>> creator)
public static ErrorHandlerReifier<? extends org.apache.camel.ErrorHandlerFactory> reifier(org.apache.camel.ErrorHandlerFactory definition)
public static org.apache.camel.processor.errorhandler.ExceptionPolicy createExceptionPolicy(OnExceptionDefinition def, org.apache.camel.spi.RouteContext routeContext)
public static org.apache.camel.ErrorHandlerFactory lookupErrorHandlerFactory(org.apache.camel.spi.RouteContext routeContext, String ref)
routeContext
- the route contextref
- reference id for the error handlerpublic static org.apache.camel.ErrorHandlerFactory lookupErrorHandlerFactory(org.apache.camel.spi.RouteContext routeContext, String ref, boolean mandatory)
routeContext
- the route contextref
- 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 abstract org.apache.camel.Processor createErrorHandler(org.apache.camel.spi.RouteContext routeContext, org.apache.camel.Processor processor) throws Exception
routeContext
- the route contextprocessor
- the outer processorException
- is thrown if the error handler could not be createdpublic void configure(org.apache.camel.spi.RouteContext routeContext, 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)
Apache Camel