public BundleDescriptor scan()

in src/main/java/org/apache/sling/feature/scanner/Scanner.java [313:330]


    public BundleDescriptor scan(final ArtifactId framework, final Map<String, String> props) throws IOException {
        final String key = SystemBundleDescriptor.createCacheKey(framework, props);
        BundleDescriptor desc = (BundleDescriptor) this.cache.get(key);
        if (desc == null) {
            for (final FrameworkScanner scanner : this.frameworkScanners) {
                desc = scanner.scan(framework, props, artifactProvider);
                if (desc != null) {
                    break;
                }
            }
            if (desc == null) {
                throw new IOException("No scanner found for framework " + framework.toMvnId());
            }
            this.cache.put(key, desc);
        }

        return desc;
    }