Class ConsoleClassLoader
java.lang.Object
java.lang.ClassLoader
org.glassfish.admingui.common.plugin.ConsoleClassLoader
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
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedThis constructor should not normally be used.ConsoleClassLoader(ClassLoader parent) This constructor creates an instance of thisClassLoaderand will use the givenClassLoaderas its parentClassLoader. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassLoaderfindModuleClassLoader(String moduleName) This method find theClassLoaderassociated with the named module.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 Details
-
HABITAT_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
ConsoleClassLoader
protected ConsoleClassLoader()This constructor should not normally be used. You should use the one that allows you to provide the parent
ClassLoader. -
ConsoleClassLoader
This constructor creates an instance of this
ClassLoaderand will use the givenClassLoaderas its parentClassLoader.- Parameters:
parent- The parentClassLoader
-
-
Method Details
-
findResource
In order for this method to find the Resource...
- Overrides:
findResourcein classClassLoader
-
findModuleClassLoader
This method find the
ClassLoaderassociated with the named module.
-