-
Feature Request
-
Resolution: Done
-
Major
-
None
-
None
-
None
Adding a SerivceProvider to a archive is a bit cumbersome..
.addManifestResource( "META-INF/services/org.jboss.arquillian.spi.TestRunner", "services/org.jboss.arquillian.spi.TestRunner");
How about adding something like this to the ManifestContainer ?
- a ServiceProviderAsset that can handle the file ie:
<X> addServiceProvider(Class<X> providerInterface, Class<? extends X>... providerImpls) { addManifestResource(new ServiceProviderAsset(providerImpls), Paths.create("services/" + providerInterface.getName())); }
- a Auto lookup based on ProviderInterface ie:
addServiceProvider(Class<?> providerInterface) { addManifestResource(new ClassLoaderAsset("META-INF/service/" + providerInterface.getName()), Paths.create("services/" + providerInterface.getName())) }
- is duplicated by
-
SHRINKWRAP-152 Support addition of Service Providers and Metadata
- Closed