# Class DefaultConnectionInfoRepositoryFactory (1.15.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.15.0 (latest)](https://docs.cloud.google.com/java/docs/reference/jdbc-socket-factory-parent/latest/com.google.cloud.sql.core.DefaultConnectionInfoRepositoryFactory)
- [1.14.1](https://docs.cloud.google.com/java/docs/reference/jdbc-socket-factory-parent/1.14.1/com.google.cloud.sql.core.DefaultConnectionInfoRepositoryFactory)

    public class DefaultConnectionInfoRepositoryFactory implements ConnectionInfoRepositoryFactory

Factory for creating a SQLAdmin client that interacts with the real SQL Admin API.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> DefaultConnectionInfoRepositoryFactory

## Implements

[ConnectionInfoRepositoryFactory](https://docs.cloud.google.com/java/docs/reference/jdbc-socket-factory-parent/latest/com.google.cloud.sql.core.ConnectionInfoRepositoryFactory)

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Constructors

### DefaultConnectionInfoRepositoryFactory(String userAgents)

    public DefaultConnectionInfoRepositoryFactory(String userAgents)

Initializes a new SQLAdminApiClientFactory class from defaults and provided userAgents.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `userAgents` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` string representing userAgents for the admin API client |

## Methods

### create(HttpRequestInitializer requestInitializer, ConnectorConfig config)

    public DefaultConnectionInfoRepository create(HttpRequestInitializer requestInitializer, ConnectorConfig config)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `requestInitializer` | `com.google.api.client.http.HttpRequestInitializer` |
| `config` | `https://docs.cloud.google.com/java/docs/reference/jdbc-socket-factory-parent/latest/com.google.cloud.sql.ConnectorConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.cloud.sql.core.DefaultConnectionInfoRepository` |   |