Package com.sun.xml.ws.test
Class Realm
- java.lang.Object
-
- com.sun.xml.ws.test.Realm
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClassFolder(File classFolder)Adds a single class folder.voidaddJar(File jar)Adds a single jar.voidaddJarFolder(File folder, String... excludes)Adds all jars in the given folder.voiddump(PrintStream out)ClassLoadergetClassLoader()org.apache.tools.ant.types.PathgetPath()File[]list()List all the components in this realm (excluding those defined in parent.)ClassloadClass(String className)StringtoString()
-
-
-
Method Detail
-
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)
-
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
-
-