|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vladmihalcea.hibernate.util.ClassLoaderUtils
public final class ClassLoaderUtils
ClassLoaderUtils - Class loading related utilities holder.
| Method Summary | ||
|---|---|---|
static boolean |
findClass(String className)
Find if Class denoted by the given string representation is loadable |
|
static ClassLoader |
getClassLoader()
Load the available ClassLoader |
|
static URL |
getResource(String resourceName)
Get the resource URL |
|
static InputStream |
getResourceAsStream(String resourceName)
Get the resource InputStream |
|
static
|
loadClass(String className)
Load the Class denoted by the given string representation |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ClassLoader getClassLoader()
public static <T> Class<T> loadClass(String className)
throws ClassNotFoundException
T - class generic typeclassName - class string representation
ClassNotFoundException - if the class cannot be resolvedpublic static boolean findClass(String className)
className - class string representation
public static URL getResource(String resourceName)
resourceName - resource name
public static InputStream getResourceAsStream(String resourceName)
resourceName - resource name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||