public void beforeAnalysis()

in alloydb-jdbc-connector/src/main/java/com/google/cloud/alloydb/nativeimage/AlloyDBFeature.java [34:54]


  public void beforeAnalysis(BeforeAnalysisAccess access) {
    if (access.findClassByName(ALLOYDB_SOCKET_CLASS) == null) {
      return;
    }

    // Register AlloyDB Socket.
    NativeImageUtils.registerClassForReflection(access, ALLOYDB_SOCKET_CLASS);

    // Register PostgreSQL driver config.
    NativeImageUtils.registerClassForReflection(access, "org.postgresql.PGProperty");

    // Register Hikari configs if used with AlloyDB.
    if (access.findClassByName("com.zaxxer.hikari.HikariConfig") != null) {
      NativeImageUtils.registerClassForReflection(access, "com.zaxxer.hikari.HikariConfig");

      RuntimeReflection.register(
          access.findClassByName("[Lcom.zaxxer.hikari.util.ConcurrentBag$IConcurrentBagEntry;"));

      RuntimeReflection.register(access.findClassByName("[Ljava.sql.Statement;"));
    }
  }