public class Scanner extends Object
ExtensionScanner
s)
FrameworkScanner
s)
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)
Scan a bundle
|
FeatureDescriptor |
scan(org.apache.sling.feature.Feature feature)
Scan a feature
|
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 scan(org.apache.sling.feature.Artifact bundle, int startLevel) throws IOException
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–2019 The Apache Software Foundation. All rights reserved.