Interface ExtensionScanner
@ConsumerType
public interface ExtensionScanner
The extension scanner scans an extension.
-
Method Summary
Modifier and TypeMethodDescriptiongetId()A unique (short) ID.getName()A human readable name to identify the scanner.scan(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 Details
-
getId
-
getName
-
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
-