Class ConsoleClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- org.glassfish.admingui.common.plugin.ConsoleClassLoader
-
public class ConsoleClassLoader extends ClassLoader
This
ClassLoadermakes it possible to access plugin resources by finding the appropriate plugin module'sClassLoaderand loading resources from it.- Author:
- Ken Paulsen (ken.paulsen@sun.com)
-
-
Field Summary
Fields Modifier and Type Field Description static StringHABITAT_ATTRIBUTE
-
Constructor Summary
Constructors Modifier Constructor Description protectedConsoleClassLoader()This constructor should not normally be used.ConsoleClassLoader(ClassLoader parent)This constructor creates an instance of thisClassLoaderand will use the givenClassLoaderas its parentClassLoader.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClassLoaderfindModuleClassLoader(String moduleName)This method find theClassLoaderassociated with the named module.URLfindResource(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, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
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
ClassLoaderand will use the givenClassLoaderas its parentClassLoader.- Parameters:
parent- The parentClassLoader
-
-
Method Detail
-
findResource
public URL findResource(String name)
In order for this method to find the Resource...
- Overrides:
findResourcein classClassLoader
-
findModuleClassLoader
public static ClassLoader findModuleClassLoader(String moduleName)
This method find the
ClassLoaderassociated with the named module.
-
-