String scanForDriver ( String url ) { try { // already registered Driver driver ; if ( ( driver = findRegisteredDriver ( url ) ) != null ) { return driver . getClass ( ) . getCanonicalName ( ) ; } scanDrivers ( ) ; if ( ( driver = findRegisteredDriver ( url ) ) != null ) { return driver . getClass ( ) . getCanonicalName ( ) ; } return null ; } catch ( Exception e ) { e . printStackTrace ( ) ; debug ( e . toString ( ) ) ; return null ; } }
Looks for a driver with a particular URL . Returns the name of the class if found null if not found .