Create a GenericArchive
-----------------------
Key: SHRINKWRAP-200
URL: https://jira.jboss.org/browse/SHRINKWRAP-200
Project: ShrinkWrap
Issue Type: Feature Request
Components: api, impl-base
Reporter: Andrew Lee Rubinger
Create an Assignable type implementing only the basic Archive operations. The use case is:
ShrinkWrap.create(GenericArchive.class,"name");
This will:
1) Close the generic context to Archive<?>
2) Have no default extension
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
Should be able to refer to a Empty StringAsset
----------------------------------------------
Key: SHRINKWRAP-202
URL: https://jira.jboss.org/browse/SHRINKWRAP-202
Project: ShrinkWrap
Issue Type: Feature Request
Components: api
Affects Versions: 1.0.0-alpha-10
Reporter: Aslak Knutsen
Priority: Minor
To help show intent we could create a public static final instance on StringAsset called EMPTY.
public class StringAsset implements Asset {
public static final Asset EMPTY = new StringAsset("");
...
}
so instead of writing:
archive.add(new StringAsset(""), "beans.xml")
we can write a more descriptive:
archive.add(StringAsset.EMPTY, "beans.xml")
EMPTY, NO_CONTENT, EMPTY_CONTENT ??
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
Should be able to get a added Archive as a type
-----------------------------------------------
Key: SHRINKWRAP-203
URL: https://jira.jboss.org/browse/SHRINKWRAP-203
Project: ShrinkWrap
Issue Type: Feature Request
Components: api, impl-base
Affects Versions: 1.0.0-alpha-10
Reporter: Aslak Knutsen
It should be possible to "get" a nested Archive out of the parent Archive without having to cast/rely on impl details:
Archive<?> applicationArchive = ((ArchiveAsset)archive.get(ArchivePaths.create("test.war")).getAsset()).getArchive();
A simple design could be:
WebArchive applicationArchive = archive.get(WebArchive.class, ArchivePaths.create("test.war"));
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira