Class ContentPackagesExtensionScanner

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getId()
      A unique (short) ID.
      java.lang.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ContentPackagesExtensionScanner

        public ContentPackagesExtensionScanner()
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: ExtensionScanner
        A human readable name to identify the scanner.
        Specified by:
        getName in interface ExtensionScanner
        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 java.io.IOException
        Description copied from interface: ExtensionScanner
        Try to scan the extension and return a descriptor
        Specified by:
        scan in interface ExtensionScanner
        Parameters:
        feature - The feature the extension belongs to
        extension - The extension
        provider - Artifact provider
        Returns:
        The descriptor or null if the scanner does not know the extension
        Throws:
        java.io.IOException - If an error occurs while scanning the extension or the extension is invalid