Package com.sun.xml.ws.test
Class Realm
- java.lang.Object
-
- com.sun.xml.ws.test.Realm
-
public class Realm extends java.lang.ObjectRepresents a classloader.Realms form a tree structure where children delegates to the parent for classloading.- Author:
- Kohsuke Kawaguchi
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClassFolder(java.io.File classFolder)Adds a single class folder.voidaddJar(java.io.File jar)Adds a single jar.voidaddJarFolder(java.io.File folder, java.lang.String... excludes)Adds all jars in the given folder.voiddump(java.io.PrintStream out)java.lang.ClassLoadergetClassLoader()org.apache.tools.ant.types.PathgetPath()java.io.File[]list()List all the components in this realm (excluding those defined in parent.)java.lang.ClassloadClass(java.lang.String className)java.lang.StringtoString()
-
-
-
Constructor Detail
-
Realm
public Realm(java.lang.String name, Realm parent)
-
-
Method Detail
-
getClassLoader
public java.lang.ClassLoader getClassLoader()
-
addJar
public void addJar(java.io.File jar) throws java.io.IOExceptionAdds a single jar.- Throws:
java.io.IOException
-
addClassFolder
public void addClassFolder(java.io.File classFolder) throws java.io.IOExceptionAdds a single class folder.- Throws:
java.io.IOException
-
addJarFolder
public void addJarFolder(java.io.File folder, java.lang.String... excludes) throws java.io.IOExceptionAdds 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:
java.io.IOException
-
dump
public void dump(java.io.PrintStream out)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
list
public java.io.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 java.lang.Class loadClass(java.lang.String className) throws java.lang.ClassNotFoundException- Throws:
java.lang.ClassNotFoundException
-
-