Class ConsoleClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- 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'sClassLoader
and loading resources from it.- Author:
- Ken Paulsen ([email protected])
-
-
Field Summary
Fields Modifier and Type Field Description static String
HABITAT_ATTRIBUTE
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConsoleClassLoader()
This constructor should not normally be used.ConsoleClassLoader(ClassLoader parent)
This constructor creates an instance of thisClassLoader
and will use the givenClassLoader
as its parentClassLoader
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClassLoader
findModuleClassLoader(String moduleName)
This method find theClassLoader
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, 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
ClassLoader
and will use the givenClassLoader
as its parentClassLoader
.- Parameters:
parent
- The parentClassLoader
-
-
Method Detail
-
findResource
public URL findResource(String name)
In order for this method to find the Resource...
- Overrides:
findResource
in classClassLoader
-
findModuleClassLoader
public static ClassLoader findModuleClassLoader(String moduleName)
This method find the
ClassLoader
associated with the named module.
-
-