/** * Scans servlet context for method annotations. * * @param ctx the servlet context */ public void scanMethodAnnotations(ServletContext ctx) { MethodAnnotationRecognizer mar = new MethodAnnotationRecognizer(methodStore, configSummary); mar.scanContext(ctx); LOG.debug("Scan complete: \n" + methodStore.getMethodsAsString()); }
/** * Scans the servlet context classes and libraries for portlet method * annotations. * * @param ctx the servlet context */ public void scanContext(ServletContext ctx) { Set<File> files; files = getClassFilesForPath(ctx, CLASSDIR); scanFiles(files); files = getLibFilesForPath(ctx, LIBDIR); scanFiles(files); }
/** * Scans list of files for method annotations. * (unit test execution path) * * @param files the set of files to scan */ public void scanMethodAnnotations(Set<File> files) { MethodAnnotationRecognizer mar = new MethodAnnotationRecognizer(methodStore, configSummary); mar.scanFiles(files); LOG.debug("Scan complete: \n" + methodStore.getMethodsAsString()); }
continue; } else if (pth.endsWith("/")) { files.addAll(getClassFilesForPath(ctx, pth)); } else if (pth.endsWith(".class")) { try {