|
ShrinkWrap API 1.1.0-alpha-2 | |||||||||
| 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(Class<?> clazz)
Load any class as a resource. |
|
| Method Summary | |
|---|---|
Class<?> |
getSource()
Returns the loaded class. |
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(Class<?> clazz)
clazz - The class to load
IllegalArgumentException - Class can not be null| Method Detail |
|---|
public InputStream openStream()
openStream in interface AssetInputStream for each call, or null if this type simply represents a logical path
within an Archivepublic Class<?> getSource()
|
ShrinkWrap API 1.1.0-alpha-2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||