|
ShrinkWrap API 1.0.0-cr-2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.api.asset.ClassLoaderAsset
public class ClassLoaderAsset
ClassloaderAsset
Implementation of a Asset backed by a resource located in the Classloader.
| Constructor Summary | |
|---|---|
ClassLoaderAsset(String resourceName)
Load a named resource using the current threads context classloader. |
|
ClassLoaderAsset(String resourceName,
ClassLoader classLoader)
Load a named resource using the given classloader. |
|
| Method Summary | |
|---|---|
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(String resourceName)
resourceName - The name of the resource to load
IllegalArgumentException - resourceName can not be null
IllegalArgumentException - resourceName must be found in given classloader
public ClassLoaderAsset(String resourceName,
ClassLoader classLoader)
resourceName - The name of the resource to loadclassLoader - The ClassLoader to use
IllegalArgumentException - resourceName can not be null
IllegalArgumentException - classloader can not be null
IllegalArgumentException - resourceName must be found in given classloader| Method Detail |
|---|
public InputStream openStream()
openStream in interface AssetInputStream for each call, or null if this type simply represents a logical path
within an Archive
|
ShrinkWrap API 1.0.0-cr-2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||