return new ModuleLimitedFinder(finder);
}
private static AnnotationFinder newFinder(final Archive archive, final boolean allowAsync) {
if (allowAsync && "true".equals(SystemInstance.get().getProperty(ASYNC_SCAN, "true"))) {
return new AsynchronousInheritanceAnnotationFinder(archive);
}
return new AnnotationFinder(archive);
}