Class ExtensionDescriptorBuilder


  • public class ExtensionDescriptorBuilder
    extends Object
    Creates an extension descriptor from some XML stream.
    Author:
    Benjamin Bentmann
    • Constructor Detail

      • ExtensionDescriptorBuilder

        public ExtensionDescriptorBuilder()
    • Method Detail

      • getExtensionDescriptorLocation

        public String getExtensionDescriptorLocation()
        Since:
        3.3.0
      • build

        public ExtensionDescriptor build​(File extensionJar)
                                  throws IOException
        Extracts the extension descriptor (if any) from the specified JAR file.
        Parameters:
        extensionJar - The JAR file or directory to extract the descriptor from, must not be null.
        Returns:
        The extracted descriptor or null if no descriptor was found.
        Throws:
        IOException - If the descriptor is present but could not be parsed.