The ShrinkWrap API
If you have ever worked with WildFly AS, and, especially, its testing framework Arquillian, you are probably also familiar with the ShrinkWrap API, which is used to build application archives before they are deployed in the test environment. However, if you have never used it, don't worry—the API is very simple and straightforward.
The central class in the API is the org.jboss.shrinkwrap.api.Archive instance. It is an abstract class that represents the archive. The concrete implementations that interest us the most are org.jboss.shrinkwrap.api.spec.JavaArchive and org.jboss.shrinkwrap.api.spec.WebArchive that represent JARs and WARs as you probably have guessed. The API is simple; it contains a bunch of methods that allow ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access