# Interface ConnectionInfoRepositoryFactory (0.2.0)

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

- [0.2.0 (latest)](https://docs.cloud.google.com/java/docs/reference/alloydb-jdbc-connector/latest/com.google.cloud.alloydb.ConnectionInfoRepositoryFactory)
- [0.1.2](https://docs.cloud.google.com/java/docs/reference/alloydb-jdbc-connector/0.1.2/com.google.cloud.alloydb.ConnectionInfoRepositoryFactory)

    public interface ConnectionInfoRepositoryFactory

Factory interface for creating SQLAdmin clients to interact with AlloyDB Admin API.

## Methods

### create(CredentialFactory credentialFactory, ConnectorConfig config)

    public abstract DefaultConnectionInfoRepository create(CredentialFactory credentialFactory, ConnectorConfig config)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `credentialFactory` | `com.google.cloud.alloydb.CredentialFactory` |
| `config` | `https://docs.cloud.google.com/java/docs/reference/alloydb-jdbc-connector/latest/com.google.cloud.alloydb.ConnectorConfig` |

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