public class ClassAsset extends Object implements Asset
| Constructor and Description |
|---|
ClassAsset(Class<?> clazz)
Load any class as a resource.
|
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getSource()
Returns the loaded class.
|
InputStream |
openStream()
Converts the Class name into a Resource URL and uses the ClassloaderResource for loading the Class.
|
public ClassAsset(Class<?> clazz)
clazz - The class to loadIllegalArgumentException - Class can not be nullpublic InputStream openStream()
openStream in interface AssetInputStream for each call, or null if this type simply represents a logical path
within an Archivepublic Class<?> getSource()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.