Class RepoInitScanner
- java.lang.Object
-
- org.apache.sling.feature.scanner.impl.RepoInitScanner
-
- All Implemented Interfaces:
ExtensionScanner
public class RepoInitScanner extends Object implements ExtensionScanner
-
-
Constructor Summary
Constructors Constructor Description RepoInitScanner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
A unique (short) ID.String
getName()
A human readable name to identify the scanner.ContainerDescriptor
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 Detail
-
getId
public String getId()
Description copied from interface:ExtensionScanner
A unique (short) ID.- Specified by:
getId
in interfaceExtensionScanner
- Returns:
- the ID.
-
getName
public String getName()
Description copied from interface:ExtensionScanner
A human readable name to identify the scanner.- Specified by:
getName
in interfaceExtensionScanner
- Returns:
- the name.
-
scan
public ContainerDescriptor scan(org.apache.sling.feature.Feature feature, org.apache.sling.feature.Extension extension, org.apache.sling.feature.builder.ArtifactProvider provider) throws IOException
Description copied from interface:ExtensionScanner
Try to scan the extension and return a descriptor- Specified by:
scan
in interfaceExtensionScanner
- Parameters:
feature
- The feature the extension belongs toextension
- The extensionprovider
- Artifact provider- Returns:
- The descriptor or
null
if the scanner does not know the extension - Throws:
IOException
- If an error occurs while scanning the extension or the extension is invalid
-
-