[shrinkwrap-issues] [JBoss JIRA] Resolved: (SHRINKWRAP-89) Java Service Provider methods for the ManifestContainer
Aslak Knutsen (JIRA)
jira-events at lists.jboss.org
Wed Dec 23 07:45:30 EST 2009
[ https://jira.jboss.org/jira/browse/SHRINKWRAP-89?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aslak Knutsen resolved SHRINKWRAP-89.
-------------------------------------
Resolution: Done
> Java Service Provider methods for the ManifestContainer
> -------------------------------------------------------
>
> Key: SHRINKWRAP-89
> URL: https://jira.jboss.org/jira/browse/SHRINKWRAP-89
> Project: ShrinkWrap
> Issue Type: Feature Request
> Reporter: Aslak Knutsen
> Assignee: Aslak Knutsen
> Fix For: 1.0.0-alpha-3
>
>
> Adding a SerivceProvider to a archive is a bit cumbersome..
> {code}
> .addManifestResource(
> "META-INF/services/org.jboss.arquillian.spi.TestRunner",
> "services/org.jboss.arquillian.spi.TestRunner");
> {code}
> How about adding something like this to the ManifestContainer ?
> - a ServiceProviderAsset that can handle the file ie:
> {code}
> <X> addServiceProvider(Class<X> providerInterface, Class<? extends X>... providerImpls)
> {
> addManifestResource(new ServiceProviderAsset(providerImpls), Paths.create("services/" + providerInterface.getName()));
> }
> {code}
> - a Auto lookup based on ProviderInterface ie:
> {code}
> addServiceProvider(Class<?> providerInterface)
> {
> addManifestResource(new ClassLoaderAsset("META-INF/service/" + providerInterface.getName()), Paths.create("services/" + providerInterface.getName()))
> }
> {code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the shrinkwrap-issues
mailing list