public class ClassLoaderUtils
extends java.lang.Object
| Constructor and Description |
|---|
ClassLoaderUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.ClassLoader |
getClassLoader()
Get the class loader which can be used to generate proxies without leaking memory.
|
static java.io.InputStream |
getResourceAsStream(java.lang.String resourceName)
Load a resource from the classpath.
|
static java.lang.Class |
loadClass(java.lang.String className)
Load a class by name.
|
public static java.lang.ClassLoader getClassLoader()
public static java.lang.Class loadClass(java.lang.String className)
throws java.lang.ClassNotFoundException
Class.forName(String).className - name of the class to load.java.lang.ClassNotFoundException - if the class cannot be found in the classpath.public static java.io.InputStream getResourceAsStream(java.lang.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-2021 Bitronix Software. All Rights Reserved.