Package com.sun.xml.ws.test
Class Realm
java.lang.Object
com.sun.xml.ws.test.Realm
Represents a classloader.
Realms form a tree structure where children delegates
to the parent for classloading.- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClassFolder(File classFolder) Adds a single class folder.voidAdds a single jar.voidaddJarFolder(File folder, String... excludes) Adds all jars in the given folder.voiddump(PrintStream out) org.apache.tools.ant.types.PathgetPath()File[]list()List all the components in this realm (excluding those defined in parent.)toString()
-
Constructor Details
-
Realm
-
-
Method Details
-
getClassLoader
-
addJar
Adds a single jar.- Throws:
IOException
-
addClassFolder
Adds a single class folder.- Throws:
IOException
-
addJarFolder
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
-
toString
-
list
List all the components in this realm (excluding those defined in parent.) -
getPath
public org.apache.tools.ant.types.Path getPath() -
loadClass
- Throws:
ClassNotFoundException
-