org.ow2.petals.binding.soap.util
Class SoapSUClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by org.ow2.petals.binding.soap.util.SoapSUClassLoader

public class SoapSUClassLoader
extends java.net.URLClassLoader

A Specific SOAP Service Unit ClassLoader, in order to find classes contained in the modules engaged with the services

Author:
cgirodengo

Constructor Summary
SoapSUClassLoader(java.net.URL[] urls, java.util.List<java.lang.ClassLoader> modulesClassLoaders, java.lang.ClassLoader parent)
          SoapSUClassLoader is extended from URLClassLoader.
 
Method Summary
protected  java.lang.Class<?> findClass(java.lang.String name)
          Overrides the URLClassLoader's findClass method by searching in the modules ClassLoaders of the SU if the class was not found
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, 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

SoapSUClassLoader

public SoapSUClassLoader(java.net.URL[] urls,
                         java.util.List<java.lang.ClassLoader> modulesClassLoaders,
                         java.lang.ClassLoader parent)
SoapSUClassLoader is extended from URLClassLoader. The constructor does not override the super constructor, but takes in addition a list of modules ClassLoader to check

Parameters:
urls - URLs
modulesClassLoaders - the Modules ClassLoaders
parent - parent classloader ClassLoader
Method Detail

findClass

protected java.lang.Class<?> findClass(java.lang.String name)
                                throws java.lang.ClassNotFoundException
Overrides the URLClassLoader's findClass method by searching in the modules ClassLoaders of the SU if the class was not found

Overrides:
findClass in class java.net.URLClassLoader
Parameters:
name - the name of the class
Returns:
the resulting class
Throws:
java.lang.ClassNotFoundException - if the class could not be found


Copyright © 2005-2010 OW2 Consortium. All Rights Reserved.