|
||||||||||
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 | |
---|---|
Class |
classForName(String name)
Find a class on the classpath (or die trying) |
Class |
classForName(String name,
ClassLoader classLoader)
Find a class on the classpath, starting with a specific classloader (or die trying) |
InputStream |
getResourceAsStream(String resource)
Get a resource from the classpath |
InputStream |
getResourceAsStream(String resource,
ClassLoader classLoader)
Get a resource from the classpath, starting with a specific class loader |
URL |
getResourceAsURL(String resource)
Get a resource as a URL using the current class path |
URL |
getResourceAsURL(String resource,
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 URL getResourceAsURL(String resource)
resource
- - the resource to locate
public URL getResourceAsURL(String resource, ClassLoader classLoader)
resource
- - the resource to findclassLoader
- - the first classloader to try
public InputStream getResourceAsStream(String resource)
resource
- - the resource to find
public InputStream getResourceAsStream(String resource, ClassLoader classLoader)
resource
- - the resource to findclassLoader
- - the first class loader to try
public Class classForName(String name) throws ClassNotFoundException
name
- - the class to look for
ClassNotFoundException
- Duh.public Class classForName(String name, ClassLoader classLoader) throws ClassNotFoundException
name
- - the class to look forclassLoader
- - the first classloader to try
ClassNotFoundException
- Duh.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |