public class Scanner extends Object
ExtensionScanners)
ExtensionScanners)
FrameworkScanners)
| Constructor and Description |
|---|
Scanner(org.apache.sling.feature.io.ArtifactManagerConfig amConfig)
Create a new scanner and use the service loader to find the scanners
|
Scanner(org.apache.sling.feature.io.ArtifactManagerConfig amConfig,
List<ExtensionScanner> extensionScanners,
List<FrameworkScanner> frameworkScanners)
Create a new scanner
|
| Modifier and Type | Method and Description |
|---|---|
ApplicationDescriptor |
scan(org.apache.sling.feature.Application app)
Scan an application
|
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.io.ArtifactManagerConfig amConfig,
List<ExtensionScanner> extensionScanners,
List<FrameworkScanner> frameworkScanners)
throws IOException
amConfig - The artifact manager configurationextensionScanners - A list of extension scannersframeworkScanners - A list of framework scannersIOException - If something goes wrongpublic Scanner(org.apache.sling.feature.io.ArtifactManagerConfig amConfig)
throws IOException
amConfig - The artifact manager configurationIOException - 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 ApplicationDescriptor scan(org.apache.sling.feature.Application app) throws IOException
app - The applicationIOException - If something goes wrong or a scanner is missingCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.