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 Asset
InputStream
for each callpublic Class<?> getSource()
Copyright © 2016 JBoss by Red Hat. All rights reserved.