jdk/src/share/classes/java/sql/Driver.java
changeset 17199 28853592ce2b
parent 15278 e081d3f73b75
child 18564 f9db68ff2cbb
equal deleted inserted replaced
17198:32db080a2a70 17199:28853592ce2b
    42  * small and standalone so that the Driver class can be loaded and
    42  * small and standalone so that the Driver class can be loaded and
    43  * queried without bringing in vast quantities of supporting code.
    43  * queried without bringing in vast quantities of supporting code.
    44  *
    44  *
    45  * <P>When a Driver class is loaded, it should create an instance of
    45  * <P>When a Driver class is loaded, it should create an instance of
    46  * itself and register it with the DriverManager. This means that a
    46  * itself and register it with the DriverManager. This means that a
    47  * user can load and register a driver by calling
    47  * user can load and register a driver by calling:
    48  * <pre>
    48  * <p>
    49  *   <code>Class.forName("foo.bah.Driver")</code>
    49  * {@code Class.forName("foo.bah.Driver")}
    50  * </pre>
    50  * <p>
    51  *
    51  * A JDBC driver may create a {@linkplain DriverAction} implementation in order
       
    52  * to receive notifications when {@linkplain DriverManager#deregisterDriver} has
       
    53  * been called.
    52  * @see DriverManager
    54  * @see DriverManager
    53  * @see Connection
    55  * @see Connection
       
    56  * @see DriverAction
    54  */
    57  */
    55 public interface Driver {
    58 public interface Driver {
    56 
    59 
    57     /**
    60     /**
    58      * Attempts to make a database connection to the given URL.
    61      * Attempts to make a database connection to the given URL.