shrinkwrap/shrinkwrap — pull request #53 by aslakknutsen (2012-04-22 19:20:03+00:00)
Title: SHRINKWRAP-402 Add support for checking the type of the Archive

The new method Archive.isOfType(Class>) can be used to verify if a given Archive is of a given ArchiveType.
The check matches the Archive.name against the ArchiveTypes extension mapping.

ShrinkWrap.create(JavaArchive.class).isOfType(WebArchive.class) == false
ShrinkWrap.create(JavaArchive.class, "my.war").isOfType(WebArchive.class) == true
ShrinkWrap.create(MySpecialWebArchive.class, "my.war").isOfType(WebArchive.class) == true