Package org.apache.camel.spi

Examples of org.apache.camel.spi.ErrorHandlerWrappingStrategy


        // The target is required.
        if (target == null) {
            throw new IllegalArgumentException("target not provided on node: " + this);
        }

        ErrorHandlerWrappingStrategy strategy = routeContext.getErrorHandlerWrappingStrategy();

        if (strategy != null) {
            return strategy.wrapProcessorInErrorHandler(routeContext, this, target);
        }

        return getErrorHandlerBuilder().createErrorHandler(routeContext, target);
    }
View Full Code Here


        // The target is required.
        if (target == null) {
            throw new IllegalArgumentException("target not provided on node: " + this);
        }

        ErrorHandlerWrappingStrategy strategy = routeContext.getErrorHandlerWrappingStrategy();

        if (strategy != null) {
            return strategy.wrapProcessorInErrorHandler(routeContext, this, target);
        }

        return getErrorHandlerBuilder().createErrorHandler(routeContext, target);
    }
View Full Code Here

        // The target is required.
        if (target == null) {
            throw new IllegalArgumentException("target not provided on node: " + this);
        }

        ErrorHandlerWrappingStrategy strategy = routeContext.getErrorHandlerWrappingStrategy();

        if (strategy != null) {
            return strategy.wrapProcessorInErrorHandler(routeContext, this, target);
        }

        return getErrorHandlerBuilder().createErrorHandler(routeContext, target);
    }
View Full Code Here

     * A strategy method to allow newly created processors to be wrapped in an
     * error handler.
     */
    protected Processor wrapInErrorHandler(RouteContext routeContext, Processor target) throws Exception {
        ObjectHelper.notNull(target, "target", this);
        ErrorHandlerWrappingStrategy strategy = routeContext.getErrorHandlerWrappingStrategy();
        if (strategy != null) {
            return strategy.wrapProcessorInErrorHandler(this, target);
        }
        return getErrorHandlerBuilder().createErrorHandler(routeContext, target);
    }
View Full Code Here

        // The target is required.
        if (target == null) {
            throw new RuntimeCamelException("target not provided.");
        }

        ErrorHandlerWrappingStrategy strategy = routeContext.getErrorHandlerWrappingStrategy();

        if (strategy != null) {
            return strategy.wrapProcessorInErrorHandler(routeContext, this, target);
        }

        return getErrorHandlerBuilder().createErrorHandler(routeContext, target);
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.spi.ErrorHandlerWrappingStrategy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.