public class Scanner extends Object
ExtensionScanners)
FrameworkScanners)
| Constructor and Description |
|---|
Scanner(org.apache.sling.feature.builder.ArtifactProvider artifactProvider)
Create a new scanner and use the service loader to find the scanners
|
Scanner(org.apache.sling.feature.builder.ArtifactProvider artifactProvider,
List<ExtensionScanner> extensionScanners,
List<FrameworkScanner> frameworkScanners)
Create a new scanner
|
| Modifier and Type | Method and Description |
|---|---|
BundleDescriptor |
scan(org.apache.sling.feature.ArtifactId framework,
Map<String,String> props)
Scan a framework
|
BundleDescriptor |
scan(org.apache.sling.feature.Artifact bundle,
int startLevel)
Deprecated.
|
FeatureDescriptor |
scan(org.apache.sling.feature.Feature feature)
Scan a feature
|
BundleDescriptor |
scanBundle(org.apache.sling.feature.Artifact bundle)
Scan a bundle
|
public Scanner(org.apache.sling.feature.builder.ArtifactProvider artifactProvider,
List<ExtensionScanner> extensionScanners,
List<FrameworkScanner> frameworkScanners)
throws IOException
artifactProvider - The artifact providerextensionScanners - A list of extension scannersframeworkScanners - A list of framework scannersIOException - If something goes wrongpublic Scanner(org.apache.sling.feature.builder.ArtifactProvider artifactProvider)
throws IOException
artifactProvider - The artifact providerIOException - If something goes wrongpublic BundleDescriptor scanBundle(org.apache.sling.feature.Artifact bundle) throws IOException
bundle - The bundle artifactIOException - If something goes wrong or the provided artifact is not a
bundle.@Deprecated public BundleDescriptor scan(org.apache.sling.feature.Artifact bundle, int startLevel) throws IOException
scanBundle(Artifact)bundle - The bundle artifactstartLevel - The start level of the bundleIOException - If something goes wrong or the provided artifact is not a
bundle.public FeatureDescriptor scan(org.apache.sling.feature.Feature feature) throws IOException
feature - The featureIOException - If something goes wrong or a scanner is missingpublic BundleDescriptor scan(org.apache.sling.feature.ArtifactId framework, Map<String,String> props) throws IOException
framework - The frameworkprops - framework properties to launch the frameworkIOException - If something goes wrong or a scanner is missingCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.