org.jboss.shrinkwrap.impl.base.asset
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 |
ServiceProviderAsset(Class<?>... providerImpls)
Creates a newline separated text file off the providerImpls class names. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.
If this returns null, this denotes that the
Asset
is to be viewed as a logical path (placeholder/directory)
only with no backing content.
- Specified by:
openStream
in interface Asset
- Returns:
- A new open
InputStream
for each call, or null if this
type simply represents a logical path within an Archive
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.