uPortal 2.4.1
API Documentation

org.jasig.portal.car
Class CarClassLoader

java.lang.Object
  extended byjava.lang.ClassLoader
      extended byjava.security.SecureClassLoader
          extended byorg.jasig.portal.car.CarClassLoader

public class CarClassLoader
extends java.security.SecureClassLoader

Loads classes and resources from installed CARs via the CarResources class. If classes are visible via the parent class loader then they will be used in place of those in the CARs. This is a singleton so that we have a single unified class namespace for all car resources preventing linkage errors and class cast exceptions.

Version:
$Revision: 1.10 $
Author:
Mark Boyd

Field Summary
static java.lang.String RCS_ID
           
 
Method Summary
 java.lang.Class findClass(java.lang.String name)
          Implement the overloading of findClass to return classes that are available from installed CAR files.
 java.net.URL findResource(java.lang.String res)
          Returns a URL pointing to a car resource if a suitable resource is found in the loaded set of CAR files or null if one is not found.
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RCS_ID

public static final java.lang.String RCS_ID
See Also:
Constant Field Values
Method Detail

findClass

public java.lang.Class findClass(java.lang.String name)
                          throws java.lang.ClassNotFoundException
Implement the overloading of findClass to return classes that are available from installed CAR files. Class loading precedes with the parent classloader first which delegates to this class loader if the classes aren't found.

Throws:
java.lang.ClassNotFoundException

findResource

public java.net.URL findResource(java.lang.String res)
Returns a URL pointing to a car resource if a suitable resource is found in the loaded set of CAR files or null if one is not found.


uPortal 2.4.1
API Documentation