Class ErrorHandlerHelper
java.lang.Object
org.apache.camel.model.errorhandler.ErrorHandlerHelper
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturns whether a specific error handler builder has been configured or not.protected static org.apache.camel.ErrorHandlerFactorylookupErrorHandlerFactory(org.apache.camel.CamelContext camelContext) static org.apache.camel.ErrorHandlerFactorylookupErrorHandlerFactory(org.apache.camel.Route route, String ref, boolean mandatory) Lookup the error handler by the given ref
-
Field Details
-
DEFAULT_ERROR_HANDLER_BUILDER
- See Also:
-
-
Method Details
-
lookupErrorHandlerFactory
public static org.apache.camel.ErrorHandlerFactory lookupErrorHandlerFactory(org.apache.camel.Route route, String ref, boolean mandatory) Lookup the error handler by the given ref- Parameters:
route- the routeref- reference id for the error handlermandatory- whether the error handler must exists, if not aNoSuchBeanExceptionis thrown- Returns:
- the error handler
-
lookupErrorHandlerFactory
protected static org.apache.camel.ErrorHandlerFactory lookupErrorHandlerFactory(org.apache.camel.CamelContext camelContext) -
isErrorHandlerFactoryConfigured
Returns whether a specific error handler builder has been configured or not. Can be used to test if none has been configured and then install a custom error handler builder replacing the default error handler (that would have been used as fallback otherwise).
This is for instance used by the transacted policy to setup a TransactedErrorHandlerBuilder in camel-spring.
-