org.ow2.petals.system.classloader
Class ComponentClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by org.ow2.petals.system.classloader.PetalsClassLoader
                  extended by org.ow2.petals.system.classloader.ComponentClassLoader

public class ComponentClassLoader
extends PetalsClassLoader

Author:
ofabre - eBMWebsourcing, ddesjardins - eBMWebsourcing

Constructor Summary
ComponentClassLoader(java.net.URL[] baseUrls, java.util.List<java.lang.String> classpathLocations, SharedLibrariesClassLoader parent, java.util.List<java.lang.String> sharedLibrariesNameList)
           
 
Method Summary
 java.net.URL getResource(java.lang.String resourceName)
          If resource is not found, search in the sharedLibrariesClassLoader, by specifying the sharedLibraries to use.
 java.io.InputStream getResourceAsStream(java.lang.String resourceName)
          If resource is not found, search in the sharedLibrariesClassLoader, by specifying the sharedLibraries to use.
protected  java.lang.Class<?> loadClass(java.lang.String className, boolean resolve)
          If class is not found, search in the sharedLibrariesClassLoader, by specifying the sharedLibraries to use.
 
Methods inherited from class org.ow2.petals.system.classloader.PetalsClassLoader
addInRepository, addLocalKnownPackage, close, getBases, getClasspath, getPackageName, getResources, getStream, isParentFirst, isUsingPackageIntelligence, knowLocalPackage, setParentFirst, setUsingPackageIntelligence, toString, useParentFirst
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findClass, 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, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComponentClassLoader

public ComponentClassLoader(java.net.URL[] baseUrls,
                            java.util.List<java.lang.String> classpathLocations,
                            SharedLibrariesClassLoader parent,
                            java.util.List<java.lang.String> sharedLibrariesNameList)
                     throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getResource

public java.net.URL getResource(java.lang.String resourceName)
If resource is not found, search in the sharedLibrariesClassLoader, by specifying the sharedLibraries to use.

Overrides:
getResource in class PetalsClassLoader
Returns:
url of the resource (null if the resource is not found)
See Also:
ClassLoader.getResource(java.lang.String)

getResourceAsStream

public java.io.InputStream getResourceAsStream(java.lang.String resourceName)
If resource is not found, search in the sharedLibrariesClassLoader, by specifying the sharedLibraries to use.

Overrides:
getResourceAsStream in class PetalsClassLoader
Parameters:
resourceName - name of the resource
Returns:
stream of the resource (null if the resource is not found)
See Also:
ClassLoader.getResourceAsStream(java.lang.String)

loadClass

protected java.lang.Class<?> loadClass(java.lang.String className,
                                       boolean resolve)
                                throws java.lang.ClassNotFoundException
If class is not found, search in the sharedLibrariesClassLoader, by specifying the sharedLibraries to use.

Overrides:
loadClass in class PetalsClassLoader
Parameters:
className - name of the class to load
resolve - boolean to resolve or not the class
Throws:
java.lang.ClassNotFoundException
See Also:
ClassLoader.loadClass(java.lang.String, boolean)


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.