Class ServiceProviderAsset
- java.lang.Object
-
- org.jboss.shrinkwrap.impl.base.asset.ServiceProviderAsset
-
- All Implemented Interfaces:
Asset
public class ServiceProviderAsset extends Object implements Asset
ServiceProviderAsset- Version:
- $Revision: $
- Author:
- Aslak Knutsen
-
-
Constructor Summary
Constructors Constructor Description ServiceProviderAsset(Class<?>... providerImpls)
Creates a newline separated text file off the providerImpls class names.ServiceProviderAsset(String... providerImpls)
Creates a newline separated text file off the providerImpls class names.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
openStream()
Get a input stream for the resource content.
-
-
-
Constructor Detail
-
ServiceProviderAsset
public ServiceProviderAsset(Class<?>... providerImpls)
Creates a newline separated text file off the providerImpls class names.- Parameters:
providerImpls
- The Classes to use- Throws:
IllegalArgumentException
- if providerImpls is null or contain null values
-
ServiceProviderAsset
public ServiceProviderAsset(String... providerImpls)
Creates a newline separated text file off the providerImpls class names.- Parameters:
providerImpls
- The class names to use- Throws:
IllegalArgumentException
- if providerImpls is null or contain null values
-
-
Method Detail
-
openStream
public InputStream openStream()
Description copied from interface:Asset
Get a input stream for the resource content. The caller is responsible for closing the stream.- Specified by:
openStream
in interfaceAsset
- Returns:
- A new open
InputStream
for each call
-
-