|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.api.asset.ClassAsset
public class ClassAsset

ClassAsset
Implementation of a Asset backed by a loaded Class
| Constructor Summary | |
|---|---|
ClassAsset(java.lang.Class<?> clazz)
Load any class as a resource. |
|
| Method Summary | |
|---|---|
java.io.InputStream |
openStream()
Converts the Class name into a Resource URL and uses the ClassloaderResource for loading the Class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassAsset(java.lang.Class<?> clazz)
clazz - The class to load
java.lang.IllegalArgumentException - Class can not be null| Method Detail |
|---|
public java.io.InputStream openStream()
openStream in interface AssetInputStream 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 | |||||||||