org.glassfish.admingui.common.plugin
Class ConsoleClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by org.glassfish.admingui.common.plugin.ConsoleClassLoader

public class ConsoleClassLoader
extends ClassLoader

This ClassLoader makes it possible to access plugin resources by finding the appropriate plugin module's ClassLoader and loading resources from it.

Author:
Ken Paulsen (ken.paulsen@sun.com)

Field Summary
static String HABITAT_ATTRIBUTE
           
 
Constructor Summary
protected ConsoleClassLoader()
           This constructor should not normally be used.
  ConsoleClassLoader(ClassLoader parent)
           This constructor creates an instance of this ClassLoader and will use the given ClassLoader as its parent ClassLoader.
 
Method Summary
static ClassLoader findModuleClassLoader(String moduleName)
           This method find the ClassLoader associated with the named module.
 URL findResource(String name)
           In order for this method to find the Resource...
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, 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

HABITAT_ATTRIBUTE

public static final String HABITAT_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

ConsoleClassLoader

protected ConsoleClassLoader()

This constructor should not normally be used. You should use the one that allows you to provide the parent ClassLoader.


ConsoleClassLoader

public ConsoleClassLoader(ClassLoader parent)

This constructor creates an instance of this ClassLoader and will use the given ClassLoader as its parent ClassLoader.

Parameters:
parent - The parent ClassLoader
Method Detail

findResource

public URL findResource(String name)

In order for this method to find the Resource...

Overrides:
findResource in class ClassLoader

findModuleClassLoader

public static ClassLoader findModuleClassLoader(String moduleName)

This method find the ClassLoader associated with the named module.



Copyright © 2012. All Rights Reserved.