Package org.apache.camel

Examples of org.apache.camel.Routes


        for (Class aClass : classes) {
            if (shouldIgnoreBean(aClass)) {
                continue;
            }
            if (isValidClass(aClass)) {
                Routes builder = instantiateBuilder(aClass);
                if (beanPostProcessor != null) {
                    // Inject the annotated resource
                    beanPostProcessor.postProcessBeforeInitialization(builder, builder.toString());
                }
                list.add(builder);
            }
        }
    }
View Full Code Here


        for (Class aClass : classes) {
            if (shouldIgnoreBean(aClass)) {
                continue;
            }
            if (isValidClass(aClass)) {
                Routes builder = instantiateBuilder(aClass);
                if (beanPostProcessor != null) {
                    // Inject the annotated resource
                    beanPostProcessor.postProcessBeforeInitialization(builder, builder.toString());
                }
                list.add(builder);
            }
        }
    }
View Full Code Here

    @Provides
    Set<Routes> routes(Injector injector) {
        Set<Routes> answer = Sets.newHashSet();
        for (Class<? extends Routes> type : routes) {
            Routes route = injector.getInstance(type);
            answer.add(route);
        }
        return answer;
    }
View Full Code Here

                        beanPostProcessor.postProcessBeforeInitialization(builder, builder.toString());
                    }
                    getContext().addRoutes(builder);
                } else {
                    // support to get the route here
                    Routes routes = builderRef.createRoutes(getContext());
                    if (routes != null) {
                        getContext().addRoutes(routes);
                    } else {
                        // Throw the exception that we can't find any build here
                        throw new CamelException("Can't find any routes info with this RouteBuilderDefinition " + builderRef);
View Full Code Here

                        beanPostProcessor.postProcessBeforeInitialization(builder, builder.toString());
                    }
                    getContext().addRoutes(builder);
                } else {
                    // support to get the route here
                    Routes routes = builderRef.createRoutes(getContext());
                    if (routes != null) {
                        getContext().addRoutes(routes);
                    } else {
                        // Throw the exception that we can't find any build here
                        throw new CamelException("Cannot find any routes with this RouteBuilder reference: " + builderRef);
View Full Code Here

//                        beanPostProcessor.postProcessBeforeInitialization(builder, builder.toString());
//                    }
                    getContext().addRoutes(builder);
                } else {
                    // support to get the route here
                    Routes routes = builderRef.createRoutes(getContext());
                    if (routes != null) {
                        getContext().addRoutes(routes);
                    } else {
                        // Throw the exception that we can't find any build here
                        throw new CamelException("Cannot find any routes with this RouteBuilder reference: " + builderRef);
View Full Code Here

                RouteBuilder builder = builderRef.createRouteBuilder(getContext());
                if (builder != null) {
                    builders.add(builder);
                } else {
                    // support to get the route here
                    Routes routes = builderRef.createRoutes(getContext());
                    if (routes != null) {
                        additionalBuilders.add(routes);
                    } else {
                        // Throw the exception that we can't find any build here
                        throw new CamelException("Cannot find any routes with this RouteBuilder reference: " + builderRef);
View Full Code Here

    @Provides
    Set<Routes> routes(Injector injector) {
        Set<Routes> answer = Sets.newHashSet();
        for (Class<? extends Routes> type : routes) {
            Routes route = injector.getInstance(type);
            answer.add(route);
        }
        return answer;
    }
View Full Code Here

        for (Class aClass : classes) {
            if (shouldIgnoreBean(aClass)) {
                continue;
            }
            if (isValidClass(aClass)) {
                Routes builder = instantiateBuilder(aClass);
                if (beanPostProcessor != null) {
                    // Inject the annotated resource
                    beanPostProcessor.postProcessBeforeInitialization(builder, builder.toString());
                }
                list.add(builder);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.Routes

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.