|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.shrinkwrap.api.asset.ClassLoaderAsset
public class ClassLoaderAsset
ClassloaderAsset
Implementation of a Asset
backed by a
resource located in the Classloader.
Constructor Summary | |
---|---|
ClassLoaderAsset(java.lang.String resourceName)
Load a named resource using the current threads context classloader. |
|
ClassLoaderAsset(java.lang.String resourceName,
java.lang.ClassLoader classLoader)
Load a named resource using the given classloader. |
Method Summary | |
---|---|
java.io.InputStream |
openStream()
Opens up the given resource as a stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassLoaderAsset(java.lang.String resourceName)
resourceName
- The name of the resource to load
java.lang.IllegalArgumentException
- resourceName can not be null
java.lang.IllegalArgumentException
- resourceName must be found in given classloaderpublic ClassLoaderAsset(java.lang.String resourceName, java.lang.ClassLoader classLoader)
resourceName
- The name of the resource to loadclassLoader
- The ClassLoader to use
java.lang.IllegalArgumentException
- resourceName can not be null
java.lang.IllegalArgumentException
- classloader can not be null
java.lang.IllegalArgumentException
- resourceName must be found in given classloaderMethod Detail |
---|
public java.io.InputStream openStream()
openStream
in interface Asset
InputStream
for each call, or null if this
type simply represents a logical path within an Archive
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |