|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
PageBoxLib.InstallClassLoader
Class loader used to load the installation class.
Invoked by Repository.
Changes:
alexis.grandemange@pagebox.net
Copyright (c) 2002-2004 Alexis Grandemange
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; version 2.1 of the License. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. A copy of the GNU Lesser General Public License lesser.txt should be included in the distribution.
| Nested Class Summary |
| Nested classes inherited from class java.lang.ClassLoader |
|
| Field Summary | |
private java.lang.String |
archName
Archive name |
(package private) java.lang.String |
classDir
archive directory |
(package private) java.util.HashMap |
classes
Class cache Key: class name Value: Class object |
private Log |
log
Logging object |
(package private) java.lang.ClassLoader |
parent
Class loader of the class that instantiates InstallClassLoader. |
private java.security.ProtectionDomain |
pd
Install class protection domain |
| Fields inherited from class java.lang.ClassLoader |
|
| Constructor Summary | |
(package private) |
InstallClassLoader(java.lang.String classDir,
java.lang.ClassLoader parent,
java.lang.String repUrl,
Log log,
java.lang.String archDir,
java.lang.String archName)
Constructor. |
| Method Summary | |
java.lang.Class |
loadClass(java.lang.String name,
boolean resolve)
Method called by DeployImpl and by the JVM to load classes. |
private java.lang.Class |
loadForward(java.lang.String name)
Forwards class load requests to the system and then to the parent class loader. |
| Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
java.lang.String classDir
java.util.HashMap classes
java.lang.ClassLoader parent
private java.security.ProtectionDomain pd
private Log log
private java.lang.String archName
| Constructor Detail |
InstallClassLoader(java.lang.String classDir,
java.lang.ClassLoader parent,
java.lang.String repUrl,
Log log,
java.lang.String archDir,
java.lang.String archName)
classDir - classes directoryparent - class loader of the class that created InstallClassLoaderrepUrl - URL of the RepoQuery Web service of the deploying Repositorylog - logging objectarchDir - archive directoryarchName - archive name.| Method Detail |
private final java.lang.Class loadForward(java.lang.String name)
throws java.lang.ClassNotFoundException
name - class name
java.lang.ClassNotFoundException
public java.lang.Class loadClass(java.lang.String name,
boolean resolve)
throws java.lang.ClassNotFoundException
name - class nameresolve - true if the class must be resolved
java.lang.ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||