Method Summary |
|
protected void | addCodeBasePath(String path) |
public void | addDependency(Dependency dependency) Adds a dependency. |
public void | addJar(Path jar) Adds a jar loader. |
public void | addJarManifestClassPath(Path path) Adds jars based on a manifest classpath. |
final public void | addListener(ClassLoaderListener listener) Adds a listener to detect class loader changes. |
public void | addLoader(Loader loader) Adds a resource loader to the end of the list. |
public void | addLoader(Loader loader, int offset) Adds a resource loader. |
public void | addManifestClassPath(String classPath, Path pwd) Adds jars based on a manifest classpath. |
public void | addNative(Path path) Adds a native path. |
public void | addParentPriorityPackage(String pkg) Add to the list of packages that don't use the
DynamicClassLoader.setServletHack(boolean) . |
public void | addParentPriorityPackages(String[] pkg) Add to the list of packages that don't use the hack. |
public void | addPathClass(String className, Path path) Adds a jar loader. |
public void | addPermission(String path, String actions) |
public void | addPermission(Permission permission) Adds a permission to the loader. |
public void | addPermissions(ArrayList<Permission> perms) |
public void | addPriorityPackage(String pkg) |
public void | addRoot(Path root) Adds a root loader. |
public void | addTransformer(ClassFileTransformer transformer) Sets any enhancer. |
public void | addURL(Path path) Adds the URL to the URLClassLoader. |
public void | addURL(URL url) Adds the URL to the URLClassLoader. |
public void | addURL(int index, URL url) Adds the URL to the URLClassLoader. |
public void | appendToClassPathForInstrumentation(String path) Adds a class loader for instrumentation (jdk 1.6). |
final protected void | buildClassPath(StringBuilder head) Fill data for the class path. |
final protected void | buildResourcePathSpecificFirst(ArrayList<String> pathList) Returns the resource path with most specific first. |
final protected void | buildSourcePath(StringBuilder head) Fill data for the class path. |
final public void | clearModified() Returns true if any of the classes have been modified. |
protected Package | definePackage(String name, String a1, String a2, String a3, String b1, String b2, String b3, URL url) Defines a new package. |
public void | destroy() Destroys the class loader. |
protected Class | findClass(String name) |
protected Class | findClassImpl(String name) |
public String | findLibrary(String name) Returns the full library path for the name. |
public Path | findPath(String name) Returns the matching single-level path. |
public Enumeration<URL> | findResources(String name) Returns an enumeration of matching resources. |
protected ClassEntry | getClassEntry(String name) Returns the matching class entry. |
final public String | getClassPath() Fill data for the class path. |
public long | getDependencyCheckInterval() Gets the dependency check interval. |
public static long | getGlobalDependencyCheckInterval() Returns the global dependency check interval. |
public String | getId() Gets the name. |
public ClassLoader | getInstrumentableClassLoader() |
protected ArrayList<ClassLoaderListener> | getListeners() Returns the listeners. |
public ArrayList<Loader> | getLoaders() |
final public String | getLocalClassPath() Fill data for the class path. |
public ClassLoader | getNewTempClassLoader() |
public ArrayList<Permission> | getPermissions() |
protected PermissionCollection | getPermissions(CodeSource codeSource) Returns the permission collection for the given code source. |
public URL | getResource(String name) |
public InputStream | getResourceAsStream(String name) |
final public String | getResourcePathSpecificFirst() Returns the resource path with most specific first. |
public SecurityManager | getSecurityManager() Returns the security manager. |
final public String | getSourcePath() Returns the source path. |
public ClassLoader | getThrowawayClassLoader() |
protected ArrayList<ClassFileTransformer> | getTransformerList() |
public URL[] | getURLs() Returns the URLs. |
public void | init() Initialize the class loader. |
public boolean | isDestroyed() Returns true if the class loader is closed. |
public static boolean | isJarCacheEnabled() Returns true if jar entries should be cached. |
final public boolean | isModified() Returns true if any of the classes have been modified. |
final public boolean | isModified(boolean enable) Returns true if any of the classes have been modified. |
public static boolean | isModified(ClassLoader loader) Returns true if any of the classes have been modified. |
final public boolean | isModifiedNow() Returns true if any of the classes have been modified, forcing a check. |
public Class> | loadClass(String name) |
protected Class | loadClass(String name, boolean resolve) |
protected Class | loadClass(ClassEntry entry) Loads the class from the loader. |
protected Class | loadClassImpl(String name, boolean resolve) |
final public boolean | logModified(Logger log) Logs the reason for modification. |
final public void | make() Makes any changed classes for the virtual class loader. |
final public void | removeListener(ClassLoaderListener listener) Adds a listener to detect class loader changes. |
protected void | replace(DynamicClassLoader source) Copies the loader. |
final public void | resetDependencyCheckInterval() Returns true if any of the classes have been modified. |
public void | scan() |
final protected void | sendAddLoaderEvent() Adds a listener to detect class loader changes. |
protected void | sendAddLoaderEventImpl() Adds a listener to detect class loader changes. |
public void | setDependencyCheckInterval(long interval) Sets the dependency check interval. |
public void | setEnableDependencyCheck(boolean enable) Enables the dependency checking. |
public static void | setGlobalDependencyCheckInterval(long interval) Sets the global dependency check interval. |
public void | setId(String id) Sets the name. |
public static void | setJarCacheEnabled(boolean isEnabled) Returns true if jar entries should be cached. |
public static void | setOldLoader(Thread thread, ClassLoader oldLoader) Sets the old loader if not destroyed. |
public void | setServletHack(boolean servletHack) Set true if the loader should use the servlet spec's hack. |
public void | stop() stops the class loader. |
public String | toString() |
public void | validate() Validates the class loader. |