|
IBM Rational Functional Tester Version 8.1.1000 IBM Rational Functional Tester API Reference Project Version 2.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.ClassLoader com.rational.test.ft.RationalFtClassLoader
public class RationalFtClassLoader
This class loader is given a path when constructed, and it knows to load classes on that path. We'll use it to load our classes when we infest the SUT, giving it the path to where rational_ft.jar is installed. This will allow us to load our classes into the SUT without being on the CLASSPATH.
Constructor Summary | |
---|---|
RationalFtClassLoader(java.lang.String[] path)
Construct an FtClassLoader, and give it the path it should use for loading our classes. |
|
RationalFtClassLoader(java.lang.String[] path, java.lang.ClassLoader parentClassLoader)
Construct an FtClassLoader, and give it the path it should use for loading our classes. |
Method Summary | |
---|---|
void |
append(java.lang.String[] path)
Append the specified directories and jars to the existing path |
protected java.net.URL |
findResource(java.lang.String name)
Overrides the same-named method in ClassLoader. |
java.net.URL |
getResource(java.lang.String name)
Overrides the same-named method in ClassLoader. |
java.io.InputStream |
getResourceAsStream(java.lang.String name)
Overrides the same-named method in ClassLoader. |
protected java.lang.Class |
loadClass(java.lang.String name, boolean resolve)
This overrides ClassLoader.loadClass(). |
void |
prepend(java.lang.String[] path)
Prepend the specified directories and jars to the existing path |
byte[] |
readFile(java.lang.String fileName)
This is our readFile(), overriding the one in ClassLoader. |
Methods inherited from class java.lang.ClassLoader |
---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResources, findSystemClass, getPackage, getPackages, getParent, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RationalFtClassLoader(java.lang.String[] path)
path
- The directories and jars (separated by the
path.separator
See Also:File.pathSeparator
public RationalFtClassLoader(java.lang.String[] path, java.lang.ClassLoader parentClassLoader)
path
- The directories and jars (separated by the
path.separator
See Also:File.pathSeparator
Method Detail |
---|
protected java.lang.Class loadClass(java.lang.String name, boolean resolve) throws java.lang.ClassNotFoundException
loadClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
public byte[] readFile(java.lang.String fileName)
fileName
- The file name null - not found.
public java.io.InputStream getResourceAsStream(java.lang.String name)
getResourceAsStream
in class java.lang.ClassLoader
name
- the resource name null
if the resource could not be foundpublic java.net.URL getResource(java.lang.String name)
getResource
in class java.lang.ClassLoader
name
- resource name null
if the resource could not be found or the caller doesn't have adequate privileges to get the resource.findResource(String)
protected java.net.URL findResource(java.lang.String name)
findResource
in class java.lang.ClassLoader
name
- the resource name null
if the resource could not be foundpublic void append(java.lang.String[] path)
path
- The directories and jars (separated by the
path.separator
See Also:File.pathSeparator
public void prepend(java.lang.String[] path)
path
- The directories and jars (separated by the
path.separator
See Also:File.pathSeparator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |