return null;
}
PackageFilter packageFilter = new PackageFilter(packageFilters);
LazyBeanNameFinder beanNameFinder = new LazyBeanNameFinder(servletContext);
PrettyAnnotationHandler annotationHandler = new PrettyAnnotationHandler(beanNameFinder);
ClassLoader classloader = Thread.currentThread().getContextClassLoader();
if (classloader == null)
{
classloader = this.getClass().getClassLoader();
}
List<ClassFinder> classFinders = new ArrayList<ClassFinder>();
ByteCodeFilter byteCodeFilter = getByteCodeFilter();
classFinders.add(new WebClassesFinder(servletContext, classloader, packageFilter, byteCodeFilter));
// does the user want to scan /WEB-INF/lib ?
String jarConfig = servletContext.getInitParameter(CONFIG_SCAN_LIB_DIR);
if ((jarConfig != null) && jarConfig.trim().equalsIgnoreCase("true"))
{
classFinders.add(new WebLibFinder(servletContext, classloader, packageFilter, byteCodeFilter));
}
for (ClassFinder finder : classFinders)
{
finder.findClasses(annotationHandler);
}
PrettyConfigBuilder builder = new PrettyConfigBuilder();
annotationHandler.build(builder);
return builder.build();
}