| java.lang.Object java.lang.ClassLoader java.security.SecureClassLoader org.jasig.portal.car.CarClassLoader
CarClassLoader | public class CarClassLoader extends SecureClassLoader (Code) | | 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.
author: Mark Boyd mark.boyd@engineer.com version: $Revision: 36690 $ |
Method Summary | |
public Class | findClass(String name) Implement the overloading of findClass to return classes that are
available from installed CAR files. | public URL | findResource(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. |
CarClassLoader | CarClassLoader()(Code) | | Create a CarClassLoader. This method has package scope so that
CarResources can instantiate it and hold the single instance to be
aquired via its getClassLoader() method.
|
CarClassLoader | CarClassLoader(ClassLoader cl)(Code) | | Create a CarClassloader with the indicated parent class loader. See
comment for zero parameter constructor for description of package scoping.
|
findClass | public Class findClass(String name) throws ClassNotFoundException(Code) | | 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.
|
findResource | public URL findResource(String res)(Code) | | 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 java.lang.ClassLoader | public synchronized void clearAssertionStatus()(Code)(Java Doc) final protected Class> defineClass(byte[] b, int off, int len) throws ClassFormatError(Code)(Java Doc) final protected Class> defineClass(String name, byte[] b, int off, int len) throws ClassFormatError(Code)(Java Doc) final protected Class> defineClass(String name, byte[] b, int off, int len, ProtectionDomain protectionDomain) throws ClassFormatError(Code)(Java Doc) final protected Class> defineClass(String name, java.nio.ByteBuffer b, ProtectionDomain protectionDomain) throws ClassFormatError(Code)(Java Doc) protected Package definePackage(String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase) throws IllegalArgumentException(Code)(Java Doc) protected Class> findClass(String name) throws ClassNotFoundException(Code)(Java Doc) protected String findLibrary(String libname)(Code)(Java Doc) final protected Class> findLoadedClass(String name)(Code)(Java Doc) protected URL findResource(String name)(Code)(Java Doc) protected Enumeration<URL> findResources(String name) throws IOException(Code)(Java Doc) final protected Class> findSystemClass(String name) throws ClassNotFoundException(Code)(Java Doc) protected Package getPackage(String name)(Code)(Java Doc) protected Package[] getPackages()(Code)(Java Doc) final public ClassLoader getParent()(Code)(Java Doc) public URL getResource(String name)(Code)(Java Doc) public InputStream getResourceAsStream(String name)(Code)(Java Doc) public Enumeration<URL> getResources(String name) throws IOException(Code)(Java Doc) public static ClassLoader getSystemClassLoader()(Code)(Java Doc) public static URL getSystemResource(String name)(Code)(Java Doc) public static InputStream getSystemResourceAsStream(String name)(Code)(Java Doc) public static Enumeration<URL> getSystemResources(String name) throws IOException(Code)(Java Doc) public Class> loadClass(String name) throws ClassNotFoundException(Code)(Java Doc) protected synchronized Class> loadClass(String name, boolean resolve) throws ClassNotFoundException(Code)(Java Doc) final protected void resolveClass(Class> c)(Code)(Java Doc) public synchronized void setClassAssertionStatus(String className, boolean enabled)(Code)(Java Doc) public synchronized void setDefaultAssertionStatus(boolean enabled)(Code)(Java Doc) public synchronized void setPackageAssertionStatus(String packageName, boolean enabled)(Code)(Java Doc) final protected void setSigners(Class> c, Object[] signers)(Code)(Java Doc)
|
|
|