Interface ExtensionScanner
-
@ConsumerType public interface ExtensionScannerThe extension scanner scans an extension.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetId()A unique (short) ID.StringgetName()A human readable name to identify the scanner.ContainerDescriptorscan(org.apache.sling.feature.Feature feature, org.apache.sling.feature.Extension extension, org.apache.sling.feature.builder.ArtifactProvider provider)Try to scan the extension and return a descriptor
-
-
-
Method Detail
-
getId
String getId()
A unique (short) ID.- Returns:
- the ID.
-
getName
String getName()
A human readable name to identify the scanner.- Returns:
- the name.
-
scan
ContainerDescriptor scan(org.apache.sling.feature.Feature feature, org.apache.sling.feature.Extension extension, org.apache.sling.feature.builder.ArtifactProvider provider) throws IOException
Try to scan the extension and return a descriptor- Parameters:
feature- The feature the extension belongs toextension- The extensionprovider- Artifact provider- Returns:
- The descriptor or
nullif the scanner does not know the extension - Throws:
IOException- If an error occurs while scanning the extension or the extension is invalid
-
-