Examples of Routes


Examples of com.cawring.simple.route.Routes

      /* 변수선언 */
      String method = req.getMethod();
      String url    = req.getRequestURI();
     
      /* routes 정보를 가지고 온다. */
      Routes routes = Routes.getInstance();
      RouteVO vo    = routes.get(method, url);
     
      /* 해당 컨트롤러 접근 */
      Class<?> controller = Class.forName(vo.getController());
      Object instance = controller.newInstance();
     
View Full Code Here

Examples of ie.transportdublin.server.plugin.json.Routes

                Stop.ROUTEID, routeId ) ).sort( new Sort( new SortField(
                Stop.STOPNUM, SortField.INT ) ) ) );

        if ( hits.hasNext() )
        {
            routeList = new Routes();
            for ( Node hit : hits )
                routeList.add( new RouteStop( hit ) );
            return Response.ok().entity( routeList ).build();
        }
        else
View Full Code Here

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

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

Examples of org.apache.camel.Routes

    @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

Examples of org.apache.camel.Routes

                        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

Examples of org.apache.camel.Routes

                        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

Examples of org.apache.camel.Routes

//                        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

Examples of org.apache.camel.Routes

                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

Examples of org.apache.camel.Routes

    @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
TOP
Copyright © 2018 www.massapi.com. 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.