|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ibatis.io.ClassLoaderWrapper
public class ClassLoaderWrapper
A class to wrap access to multiple class loaders making them work as one
Method Summary | |
---|---|
java.lang.Class |
classForName(java.lang.String name)
Find a class on the classpath (or die trying) |
java.lang.Class |
classForName(java.lang.String name,
java.lang.ClassLoader classLoader)
Find a class on the classpath, starting with a specific classloader (or die trying) |
java.io.InputStream |
getResourceAsStream(java.lang.String resource)
Get a resource from the classpath |
java.io.InputStream |
getResourceAsStream(java.lang.String resource,
java.lang.ClassLoader classLoader)
Get a resource from the classpath, starting with a specific class loader |
java.net.URL |
getResourceAsURL(java.lang.String resource)
Get a resource as a URL using the current class path |
java.net.URL |
getResourceAsURL(java.lang.String resource,
java.lang.ClassLoader classLoader)
Get a resource from the classpath, starting with a specific class loader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.net.URL getResourceAsURL(java.lang.String resource)
resource
- - the resource to locate
public java.net.URL getResourceAsURL(java.lang.String resource, java.lang.ClassLoader classLoader)
resource
- - the resource to findclassLoader
- - the first classloader to try
public java.io.InputStream getResourceAsStream(java.lang.String resource)
resource
- - the resource to find
public java.io.InputStream getResourceAsStream(java.lang.String resource, java.lang.ClassLoader classLoader)
resource
- - the resource to findclassLoader
- - the first class loader to try
public java.lang.Class classForName(java.lang.String name) throws java.lang.ClassNotFoundException
name
- - the class to look for
java.lang.ClassNotFoundException
- Duh.public java.lang.Class classForName(java.lang.String name, java.lang.ClassLoader classLoader) throws java.lang.ClassNotFoundException
name
- - the class to look forclassLoader
- - the first classloader to try
java.lang.ClassNotFoundException
- Duh.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |