[shrinkwrap-issues] [JBoss JIRA] Created: (SHRINKWRAP-303) Add getAsType(Class<Archive<?>> archiveType)

Andrew Rubinger (JIRA) jira-events at lists.jboss.org
Mon Jul 11 14:55:23 EDT 2011


Add getAsType(Class<Archive<?>> archiveType)
--------------------------------------------

                 Key: SHRINKWRAP-303
                 URL: https://issues.jboss.org/browse/SHRINKWRAP-303
             Project: ShrinkWrap
          Issue Type: Task
            Reporter: Andrew Rubinger


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)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the shrinkwrap-issues mailing list