ninja-jaxy-routes/src/main/java/ninja/jaxy/JaxyRoutes.java
private void processFoundMethods() {
        for (Method method : findControllerMethods()) {
            if (allowMethod(method)) {

                // add the method to our todo list
                methods.add(method);

                // generate the paths for the controller class
                final Class<?> controllerClass = method.getDeclaringClass();

                if (!controllers.containsKey(controllerClass)) {

                    Set<String> paths = collectPaths(controllerClass);
                    controllers.put(controllerClass, paths);

                }
            }
        }
    }
private void processFoundMethods() {
        for (Method method : findControllerMethods()) {
            if (allowMethod(method)) {

                // add the method to our todo list
                methods.add(method);

                // generate the paths for the controller class
                final Class<?> controllerClass = method.getDeclaringClass();

                if (!controllers.containsKey(controllerClass)) {

                    Set<String> paths = collectPaths(controllerClass);
                    controllers.put(controllerClass, paths);

                }
            }
        }
    }
private void processFoundMethods ( ) { for ( Method method : findControllerMethods ( ) ) { if ( allowMethod ( method ) ) { // add the method to our todo list methods . add ( method ) ; // generate the paths for the controller class final Class < ? > controllerClass = method . getDeclaringClass ( ) ; if ( ! controllers . containsKey ( controllerClass ) ) { Set < String > paths = collectPaths ( controllerClass ) ; controllers . put ( controllerClass , paths ) ; } } } }
Takes the found methods and checks if they have a valid format.
If they do, the controller path classes for these methods are generated
Takes the found methods and checks if they have a valid format . If they do the controller path classes for these methods are generated