| |
|
| java.lang.Object java.lang.Thread org.dbbrowser.drivermanager.JDBCDriverSearchUtility
JDBCDriverSearchUtility | public class JDBCDriverSearchUtility extends Thread (Code) | | A utility class used to search for JDBC driver classes in a jar file.
JDBC driver classes are classes which implement the 'java.sql.Driver' interface. This search utility extends Thread and can
run in a seperate thread while informing the change listeners of the progress.
|
JDBCDriverSearchUtility | public JDBCDriverSearchUtility(File jdbcDriverJarFileLocation, ChangeListener changeListener, ChangeListener processCompletedListener)(Code) | | Constructer
Parameters: jdbcDriverJarFileLocation - Parameters: changeListener - Parameters: processCompletedListener - |
getListOfJDBCDriverClasses | public List getListOfJDBCDriverClasses() throws IOException(Code) | | Call this method when the process is completed to get the list of JDBC driver classes
- a list of Strings throws: IOException - |
run | public void run()(Code) | | Run this method in a seperate thread. This method:
- Informs the changeListener when it starts and during the progress of the search
- Searches the jar file for classes which implement the java.sql.Driver interface using 'Driver.class.isAssignableFrom(aClass)' statement
- Informs the changeListener when it is finished
|
|
|
|