ninja-jaxy-routes/src/main/java/ninja/jaxy/JaxyRoutes.java
private void configureReflections() {
        Optional<String> basePackage = Optional.ofNullable(ninjaProperties.get(NinjaConstant.APPLICATION_MODULES_BASE_PACKAGE));
        
        if (basePackage.isPresent()) {
            reflections = new Reflections(
                    basePackage.get() + "." + NinjaConstant.CONTROLLERS_DIR, 
                    new MethodAnnotationsScanner());
        } else {
            reflections = new Reflections(
                    NinjaConstant.CONTROLLERS_DIR, 
                    new MethodAnnotationsScanner()); 
        }
    }
private void configureReflections() {
        Optional<String> basePackage = Optional.ofNullable(ninjaProperties.get(NinjaConstant.APPLICATION_MODULES_BASE_PACKAGE));
        
        if (basePackage.isPresent()) {
            reflections = new Reflections(
                    basePackage.get() + "." + NinjaConstant.CONTROLLERS_DIR, 
                    new MethodAnnotationsScanner());
        } else {
            reflections = new Reflections(
                    NinjaConstant.CONTROLLERS_DIR, 
                    new MethodAnnotationsScanner()); 
        }
    }
private void configureReflections ( ) { Optional < String > basePackage = Optional . ofNullable ( ninjaProperties . get ( NinjaConstant . APPLICATION_MODULES_BASE_PACKAGE ) ) ; if ( basePackage . isPresent ( ) ) { reflections = new Reflections ( basePackage . get ( ) + "." + NinjaConstant . CONTROLLERS_DIR , new MethodAnnotationsScanner ( ) ) ; } else { reflections = new Reflections ( NinjaConstant . CONTROLLERS_DIR , new MethodAnnotationsScanner ( ) ) ; } }
Configures the set of packages to scan for annotated controller methods.
Configures the set of packages to scan for annotated controller methods .