Class WarJarExtractor

  • All Implemented Interfaces:
    org.revapi.configuration.Configurable, org.revapi.java.spi.JarExtractor

    public class WarJarExtractor
    extends Object
    implements org.revapi.java.spi.JarExtractor
    If the provided archive is a ZIP file (which also means a JAR file) and it contains entries in the WEB-INF/classes directory then only those entries are considered for API analysis.

    Can be configured using include and exclude lists of regexes on archive names so that user can switch this extractor off if need be.

    Extension ID: war

    • Constructor Detail

      • WarJarExtractor

        public WarJarExtractor()
    • Method Detail

      • extract

        public Optional<InputStream> extract​(org.revapi.Archive archive)
        Specified by:
        extract in interface org.revapi.java.spi.JarExtractor
      • getExtensionId

        public String getExtensionId()
        Specified by:
        getExtensionId in interface org.revapi.configuration.Configurable
      • getJSONSchema

        @Nullable
        public Reader getJSONSchema()
        Specified by:
        getJSONSchema in interface org.revapi.configuration.Configurable
      • initialize

        public void initialize​(@Nonnull
                               org.revapi.AnalysisContext analysisContext)
        Specified by:
        initialize in interface org.revapi.configuration.Configurable