|
Bali Share 1.1.18 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.bali.share.util.ClassLoaderUtils
Utility methods for accessing classes and resources using an appropriate class loader.
Method Summary | |
static java.lang.ClassLoader |
getContextClassLoader()
Dynamically accesses the current context class loader. |
static java.net.URL |
getResource(java.lang.String name)
Locates the resource with the specified name. |
static java.net.URL |
getResource(java.lang.String name,
java.lang.ClassLoader callerClassLoader)
Locates the resource with the specified name. |
static java.io.InputStream |
getResourceAsStream(java.lang.String name)
Locates the stream resource with the specified name. |
static java.io.InputStream |
getResourceAsStream(java.lang.String name,
java.lang.ClassLoader callerClassLoader)
Locates the resource stream with the specified name. |
static java.lang.Class |
loadClass(java.lang.String name)
Loads the class with the specified name. |
static java.lang.Class |
loadClass(java.lang.String name,
java.lang.ClassLoader callerClassLoader)
Loads the class with the specified name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.Class loadClass(java.lang.String name) throws java.lang.ClassNotFoundException
name
- the name of the classClass
objectjava.lang.ClassNotFoundException
- if the class was not foundpublic static java.net.URL getResource(java.lang.String name)
name
- the name of the resourceURL
objectpublic static java.io.InputStream getResourceAsStream(java.lang.String name)
name
- the name of the resourceInputStream
objectpublic static java.lang.Class loadClass(java.lang.String name, java.lang.ClassLoader callerClassLoader) throws java.lang.ClassNotFoundException
name
- the name of the classcallerClassLoader
- the calling class loader contextClass
objectjava.lang.ClassNotFoundException
- if the class was not foundpublic static java.net.URL getResource(java.lang.String name, java.lang.ClassLoader callerClassLoader)
name
- the name of the resourcecallerClassLoader
- the calling class loader contextURL
objectpublic static java.io.InputStream getResourceAsStream(java.lang.String name, java.lang.ClassLoader callerClassLoader)
name
- the name of the resourcecallerClassLoader
- the calling class loader contextInputStream
objectpublic static java.lang.ClassLoader getContextClassLoader()
|
Bali Share 1.1.18 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |