Class Realm

java.lang.Object
com.sun.xml.ws.test.Realm

public class Realm extends Object
Represents a classloader. Realms form a tree structure where children delegates to the parent for classloading.
Author:
Kohsuke Kawaguchi
  • Constructor Details

  • Method Details

    • getClassLoader

      public ClassLoader getClassLoader()
    • addJar

      public void addJar(File jar) throws IOException
      Adds a single jar.
      Throws:
      IOException
    • addClassFolder

      public void addClassFolder(File classFolder) throws IOException
      Adds a single class folder.
      Throws:
      IOException
    • addJarFolder

      public void addJarFolder(File folder, String... excludes) throws IOException
      Adds all jars in the given folder.
      Parameters:
      folder - A directory that contains a bunch of jar files.
      excludes - List of jars to be excluded
      Throws:
      IOException
    • dump

      public void dump(PrintStream out)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • list

      public File[] list()
      List all the components in this realm (excluding those defined in parent.)
    • getPath

      public org.apache.tools.ant.types.Path getPath()
    • loadClass

      public Class loadClass(String className) throws ClassNotFoundException
      Throws:
      ClassNotFoundException