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's ClassLoader and loading resources from it.

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

  • 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

      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 Details

    • 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.