org.apache.axis2.deployment
Class DeploymentClassLoader

java.lang.Object
  extended byjava.lang.ClassLoader
      extended byjava.security.SecureClassLoader
          extended byjava.net.URLClassLoader
              extended byorg.apache.axis2.deployment.DeploymentClassLoader

public class DeploymentClassLoader
extends java.net.URLClassLoader


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

DeploymentClassLoader

public 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

Parameters:
urls - URL
parent - parent classloader ClassLoader
Method Detail

findClass

protected java.lang.Class findClass(java.lang.String name)
                             throws java.lang.ClassNotFoundException
Parameters:
name - String Name of the file to be loaded
Returns:
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

Throws:
java.lang.ClassNotFoundException