public class org.springframework.jdbc.support.DatabaseStartupValidator implements org.springframework.beans.factory.InitializingBean
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.springframework.jdbc.support.DatabaseStartupValidator
  super_class: java.lang.Object
{
  public static final int DEFAULT_INTERVAL;
    descriptor: I
    flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
    ConstantValue: 1

  public static final int DEFAULT_TIMEOUT;
    descriptor: I
    flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
    ConstantValue: 60

  protected final org.apache.commons.logging.Log logger;
    descriptor: Lorg/apache/commons/logging/Log;
    flags: (0x0014) ACC_PROTECTED, ACC_FINAL

  private javax.sql.DataSource dataSource;
    descriptor: Ljavax/sql/DataSource;
    flags: (0x0002) ACC_PRIVATE
    RuntimeVisibleAnnotations: 
      org.springframework.lang.Nullable()

  private java.lang.String validationQuery;
    descriptor: Ljava/lang/String;
    flags: (0x0002) ACC_PRIVATE
    RuntimeVisibleAnnotations: 
      org.springframework.lang.Nullable()

  private int interval;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private int timeout;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.springframework.jdbc.support.DatabaseStartupValidator this
         0: .line 43
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 56
            aload 0 /* this */
            aload 0 /* this */
            invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
            invokestatic org.apache.commons.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;
            putfield org.springframework.jdbc.support.DatabaseStartupValidator.logger:Lorg/apache/commons/logging/Log;
         2: .line 64
            aload 0 /* this */
            iconst_1
            putfield org.springframework.jdbc.support.DatabaseStartupValidator.interval:I
         3: .line 66
            aload 0 /* this */
            bipush 60
            putfield org.springframework.jdbc.support.DatabaseStartupValidator.timeout:I
         4: .line 43
            return
        end local 0 // org.springframework.jdbc.support.DatabaseStartupValidator this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Lorg/springframework/jdbc/support/DatabaseStartupValidator;

  public void setDataSource(javax.sql.DataSource);
    descriptor: (Ljavax/sql/DataSource;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.springframework.jdbc.support.DatabaseStartupValidator this
        start local 1 // javax.sql.DataSource dataSource
         0: .line 73
            aload 0 /* this */
            aload 1 /* dataSource */
            putfield org.springframework.jdbc.support.DatabaseStartupValidator.dataSource:Ljavax/sql/DataSource;
         1: .line 74
            return
        end local 1 // javax.sql.DataSource dataSource
        end local 0 // org.springframework.jdbc.support.DatabaseStartupValidator this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    2     0        this  Lorg/springframework/jdbc/support/DatabaseStartupValidator;
            0    2     1  dataSource  Ljavax/sql/DataSource;
    MethodParameters:
            Name  Flags
      dataSource  

  public void setValidationQuery(java.lang.String);
    descriptor: (Ljava/lang/String;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.springframework.jdbc.support.DatabaseStartupValidator this
        start local 1 // java.lang.String validationQuery
         0: .line 80
            aload 0 /* this */
            aload 1 /* validationQuery */
            putfield org.springframework.jdbc.support.DatabaseStartupValidator.validationQuery:Ljava/lang/String;
         1: .line 81
            return
        end local 1 // java.lang.String validationQuery
        end local 0 // org.springframework.jdbc.support.DatabaseStartupValidator this
      LocalVariableTable:
        Start  End  Slot             Name  Signature
            0    2     0             this  Lorg/springframework/jdbc/support/DatabaseStartupValidator;
            0    2     1  validationQuery  Ljava/lang/String;
    MethodParameters:
                 Name  Flags
      validationQuery  

  public void setInterval(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.springframework.jdbc.support.DatabaseStartupValidator this
        start local 1 // int interval
         0: .line 88
            aload 0 /* this */
            iload 1 /* interval */
            putfield org.springframework.jdbc.support.DatabaseStartupValidator.interval:I
         1: .line 89
            return
        end local 1 // int interval
        end local 0 // org.springframework.jdbc.support.DatabaseStartupValidator this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    2     0      this  Lorg/springframework/jdbc/support/DatabaseStartupValidator;
            0    2     1  interval  I
    MethodParameters:
          Name  Flags
      interval  

  public void setTimeout(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.springframework.jdbc.support.DatabaseStartupValidator this
        start local 1 // int timeout
         0: .line 96
            aload 0 /* this */
            iload 1 /* timeout */
            putfield org.springframework.jdbc.support.DatabaseStartupValidator.timeout:I
         1: .line 97
            return
        end local 1 // int timeout
        end local 0 // org.springframework.jdbc.support.DatabaseStartupValidator this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    2     0     this  Lorg/springframework/jdbc/support/DatabaseStartupValidator;
            0    2     1  timeout  I
    MethodParameters:
         Name  Flags
      timeout  

  public void afterPropertiesSet();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=12, args_size=1
        start local 0 // org.springframework.jdbc.support.DatabaseStartupValidator this
         0: .line 107
            aload 0 /* this */
            getfield org.springframework.jdbc.support.DatabaseStartupValidator.dataSource:Ljavax/sql/DataSource;
            ifnonnull 2
         1: .line 108
            new java.lang.IllegalArgumentException
            dup
            ldc "Property 'dataSource' is required"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 110
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.springframework.jdbc.support.DatabaseStartupValidator.validationQuery:Ljava/lang/String;
            ifnonnull 4
         3: .line 111
            new java.lang.IllegalArgumentException
            dup
            ldc "Property 'validationQuery' is required"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         4: .line 115
      StackMap locals:
      StackMap stack:
            iconst_0
            istore 1 /* validated */
        start local 1 // boolean validated
         5: .line 116
            invokestatic java.lang.System.currentTimeMillis:()J
            lstore 2 /* beginTime */
        start local 2 // long beginTime
         6: .line 117
            lload 2 /* beginTime */
            getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
            aload 0 /* this */
            getfield org.springframework.jdbc.support.DatabaseStartupValidator.timeout:I
            i2l
            invokevirtual java.util.concurrent.TimeUnit.toMillis:(J)J
            ladd
            lstore 4 /* deadLine */
        start local 4 // long deadLine
         7: .line 118
            aconst_null
            astore 6 /* latestEx */
        start local 6 // java.sql.SQLException latestEx
         8: .line 120
            goto 40
         9: .line 121
      StackMap locals: org.springframework.jdbc.support.DatabaseStartupValidator int long long java.sql.SQLException
      StackMap stack:
            aconst_null
            astore 7 /* con */
        start local 7 // java.sql.Connection con
        10: .line 122
            aconst_null
            astore 8 /* stmt */
        start local 8 // java.sql.Statement stmt
        11: .line 124
            aload 0 /* this */
            getfield org.springframework.jdbc.support.DatabaseStartupValidator.dataSource:Ljavax/sql/DataSource;
            invokeinterface javax.sql.DataSource.getConnection:()Ljava/sql/Connection;
            astore 7 /* con */
        12: .line 125
            aload 7 /* con */
            ifnonnull 16
        13: .line 126
            new org.springframework.jdbc.CannotGetJdbcConnectionException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Failed to execute validation query: DataSource returned null from getConnection(): "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
        14: .line 127
            aload 0 /* this */
            getfield org.springframework.jdbc.support.DatabaseStartupValidator.dataSource:Ljavax/sql/DataSource;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
        15: .line 126
            invokespecial org.springframework.jdbc.CannotGetJdbcConnectionException.<init>:(Ljava/lang/String;)V
            athrow
        16: .line 129
      StackMap locals: java.sql.Connection java.sql.Statement
      StackMap stack:
            aload 7 /* con */
            invokeinterface java.sql.Connection.createStatement:()Ljava/sql/Statement;
            astore 8 /* stmt */
        17: .line 130
            aload 8 /* stmt */
            aload 0 /* this */
            getfield org.springframework.jdbc.support.DatabaseStartupValidator.validationQuery:Ljava/lang/String;
            invokeinterface java.sql.Statement.execute:(Ljava/lang/String;)Z
            pop
        18: .line 131
            iconst_1
            istore 1 /* validated */
        19: .line 132
            goto 36
        20: .line 133
      StackMap locals:
      StackMap stack: java.sql.SQLException
            astore 9 /* ex */
        start local 9 // java.sql.SQLException ex
        21: .line 134
            aload 9 /* ex */
            astore 6 /* latestEx */
        22: .line 135
            aload 0 /* this */
            getfield org.springframework.jdbc.support.DatabaseStartupValidator.logger:Lorg/apache/commons/logging/Log;
            invokeinterface org.apache.commons.logging.Log.isDebugEnabled:()Z
            ifeq 24
        23: .line 136
            aload 0 /* this */
            getfield org.springframework.jdbc.support.DatabaseStartupValidator.logger:Lorg/apache/commons/logging/Log;
            new java.lang.StringBuilder
            dup
            ldc "Validation query ["
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* this */
            getfield org.springframework.jdbc.support.DatabaseStartupValidator.validationQuery:Ljava/lang/String;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            ldc "] threw exception"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            aload 9 /* ex */
            invokeinterface org.apache.commons.logging.Log.debug:(Ljava/lang/Object;Ljava/lang/Throwable;)V
        24: .line 138
      StackMap locals: java.sql.SQLException
      StackMap stack:
            aload 0 /* this */
            getfield org.springframework.jdbc.support.DatabaseStartupValidator.logger:Lorg/apache/commons/logging/Log;
            invokeinterface org.apache.commons.logging.Log.isInfoEnabled:()Z
            ifeq 30
        25: .line 139
            lload 4 /* deadLine */
            invokestatic java.lang.System.currentTimeMillis:()J
            lsub
            l2f
            ldc 1000.0
            fdiv
            fstore 10 /* rest */
        start local 10 // float rest
        26: .line 140
            fload 10 /* rest */
            aload 0 /* this */
            getfield org.springframework.jdbc.support.DatabaseStartupValidator.interval:I
            i2f
            fcmpl
            ifle 30
        27: .line 141
            aload 0 /* this */
            getfield org.springframework.jdbc.support.DatabaseStartupValidator.logger:Lorg/apache/commons/logging/Log;
            new java.lang.StringBuilder
            dup
            ldc "Database has not started up yet - retrying in "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* this */
            getfield org.springframework.jdbc.support.DatabaseStartupValidator.interval:I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
        28: .line 142
            ldc " seconds (timeout in "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            fload 10 /* rest */
            invokevirtual java.lang.StringBuilder.append:(F)Ljava/lang/StringBuilder;
            ldc " seconds)"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
        29: .line 141
            invokeinterface org.apache.commons.logging.Log.info:(Ljava/lang/Object;)V
        end local 10 // float rest
        end local 9 // java.sql.SQLException ex
        30: .line 147
      StackMap locals:
      StackMap stack:
            aload 8 /* stmt */
            invokestatic org.springframework.jdbc.support.JdbcUtils.closeStatement:(Ljava/sql/Statement;)V
        31: .line 148
            aload 7 /* con */
            invokestatic org.springframework.jdbc.support.JdbcUtils.closeConnection:(Ljava/sql/Connection;)V
            goto 38
        32: .line 146
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 11
        33: .line 147
            aload 8 /* stmt */
            invokestatic org.springframework.jdbc.support.JdbcUtils.closeStatement:(Ljava/sql/Statement;)V
        34: .line 148
            aload 7 /* con */
            invokestatic org.springframework.jdbc.support.JdbcUtils.closeConnection:(Ljava/sql/Connection;)V
        35: .line 149
            aload 11
            athrow
        36: .line 147
      StackMap locals:
      StackMap stack:
            aload 8 /* stmt */
            invokestatic org.springframework.jdbc.support.JdbcUtils.closeStatement:(Ljava/sql/Statement;)V
        37: .line 148
            aload 7 /* con */
            invokestatic org.springframework.jdbc.support.JdbcUtils.closeConnection:(Ljava/sql/Connection;)V
        38: .line 151
      StackMap locals:
      StackMap stack:
            iload 1 /* validated */
            ifne 40
        39: .line 152
            getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
            aload 0 /* this */
            getfield org.springframework.jdbc.support.DatabaseStartupValidator.interval:I
            i2l
            invokevirtual java.util.concurrent.TimeUnit.sleep:(J)V
        end local 8 // java.sql.Statement stmt
        end local 7 // java.sql.Connection con
        40: .line 120
      StackMap locals:
      StackMap stack:
            iload 1 /* validated */
            ifne 41
            invokestatic java.lang.System.currentTimeMillis:()J
            lload 4 /* deadLine */
            lcmp
            iflt 9
        41: .line 156
      StackMap locals:
      StackMap stack:
            iload 1 /* validated */
            ifne 45
        42: .line 157
            new org.springframework.jdbc.CannotGetJdbcConnectionException
            dup
        43: .line 158
            new java.lang.StringBuilder
            dup
            ldc "Database has not started up within "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* this */
            getfield org.springframework.jdbc.support.DatabaseStartupValidator.timeout:I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            ldc " seconds"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            aload 6 /* latestEx */
        44: .line 157
            invokespecial org.springframework.jdbc.CannotGetJdbcConnectionException.<init>:(Ljava/lang/String;Ljava/sql/SQLException;)V
            athrow
        45: .line 161
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.springframework.jdbc.support.DatabaseStartupValidator.logger:Lorg/apache/commons/logging/Log;
            invokeinterface org.apache.commons.logging.Log.isInfoEnabled:()Z
            ifeq 51
        46: .line 162
            invokestatic java.lang.System.currentTimeMillis:()J
            lload 2 /* beginTime */
            lsub
            l2f
            ldc 1000.0
            fdiv
            fstore 7 /* duration */
        start local 7 // float duration
        47: .line 163
            aload 0 /* this */
            getfield org.springframework.jdbc.support.DatabaseStartupValidator.logger:Lorg/apache/commons/logging/Log;
            new java.lang.StringBuilder
            dup
            ldc "Database startup detected after "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            fload 7 /* duration */
            invokevirtual java.lang.StringBuilder.append:(F)Ljava/lang/StringBuilder;
            ldc " seconds"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokeinterface org.apache.commons.logging.Log.info:(Ljava/lang/Object;)V
        end local 7 // float duration
        end local 6 // java.sql.SQLException latestEx
        end local 4 // long deadLine
        end local 2 // long beginTime
        end local 1 // boolean validated
        48: .line 165
            goto 51
        49: .line 166
      StackMap locals: org.springframework.jdbc.support.DatabaseStartupValidator
      StackMap stack: java.lang.InterruptedException
            pop
        50: .line 168
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            invokevirtual java.lang.Thread.interrupt:()V
        51: .line 170
      StackMap locals:
      StackMap stack:
            return
        end local 0 // org.springframework.jdbc.support.DatabaseStartupValidator this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   52     0       this  Lorg/springframework/jdbc/support/DatabaseStartupValidator;
            5   48     1  validated  Z
            6   48     2  beginTime  J
            7   48     4   deadLine  J
            8   48     6   latestEx  Ljava/sql/SQLException;
           10   40     7        con  Ljava/sql/Connection;
           11   40     8       stmt  Ljava/sql/Statement;
           21   30     9         ex  Ljava/sql/SQLException;
           26   30    10       rest  F
           47   48     7   duration  F
      Exception table:
        from    to  target  type
          11    19      20  Class java.sql.SQLException
          11    30      32  any
           4    48      49  Class java.lang.InterruptedException
}
SourceFile: "DatabaseStartupValidator.java"