public class ClassLoaderUtils extends Object
| Constructor and Description |
|---|
ClassLoaderUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Set<Class<?>> |
getAllInterfaces(Class<?> clazz) |
static ClassLoader |
getClassLoader()
Get the class loader which can be used to generate proxies without leaking memory.
|
static InputStream |
getResourceAsStream(String resourceName)
Load a resource from the classpath.
|
static Class |
loadClass(String className)
Load a class by name.
|
public static ClassLoader getClassLoader()
public static Class loadClass(String className) throws ClassNotFoundException
Class.forName(String).className - name of the class to load.ClassNotFoundException - if the class cannot be found in the classpath.public static InputStream getResourceAsStream(String resourceName)
ClassLoader.getResourceAsStream(String) using this class' classloader.resourceName - the resource name to load.InputStream if the resource could be found, null otherwise.Copyright © 2006-2016 Bitronix Software. All Rights Reserved.