|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.apache.axis2.deployment.DeploymentClassLoader
Constructor Summary | |
DeploymentClassLoader(java.net.URL[] urls,
java.lang.ClassLoader parent)
DeploymentClassLoader is exetend form URLClassLoader , and the constructor has not overide the super constroctor , but has done some stuff to find out jar fils inside /lib director |
Method Summary | |
protected java.lang.Class |
findClass(java.lang.String name)
|
Methods inherited from class java.net.URLClassLoader |
addURL, definePackage, findResource, findResources, getPermissions, getURLs, newInstance, newInstance |
Methods inherited from class java.security.SecureClassLoader |
defineClass |
Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DeploymentClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent)
urls
- URL
parent
- parent classloader ClassLoader
Method Detail |
protected java.lang.Class findClass(java.lang.String name) throws java.lang.ClassNotFoundException
name
- String
Name of the file to be loaded
Class
return a class object if it found else
will return null or classNotfoun exeption
The method has ovride in the following way
1. called the super class and check to see wether the class is there
if the class is found then return that , else if super returns ClassNotfoundExeption
2. Check wether the entry corresponding to the class name exsit in one of jar files
in /lib director
3. If it is there get the byte array out of that and creat a Class object out of that
by calling "defineClass()" , if it sucssed then return that else
4. Throw classNotfound exeption
java.lang.ClassNotFoundException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |