Uploaded image for project: 'ShrinkWrap'
  1. ShrinkWrap
  2. SHRINKWRAP-303

Add getAsType(Class<Archive<?>> archiveType, ArchivePath)

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • 1.0.0-beta-6
    • None
    • None
    • None

    Description

      We shouldn't require users to specify an ArchiveFormat for Archive.getAsType. This, in the large majority of cases, can be inferred from the Archive type passed in (for instance, WebArchive.class generally means ArchiveFormat.ZIP).

      Add to the META-INF/services files for each archive type the default archive format, and use this in a getAsType(Class<Archive<?>> archiveType, ArchivePath path) method to delegate to the already in-place getAsType(Class<Archive<?>> archiveType, ArchivePath path, ArchiveFormat format)

      Attachments

        Issue Links

          Activity

            People

              ddalto@redhat.com Davide D'Alto (Inactive)
              arubinge@redhat.com Andrew Rubinger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: