com.holonplatform.jdbc

## Interface MultiTenantDataSource.Builder

- All Known Implementing Classes:
    DefaultMultiTenantDataSource.DefaultBuilder
  Enclosing interface:
    MultiTenantDataSource

      public static interface MultiTenantDataSource.Builder

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `MultiTenantDataSource` | `build()` Build `MultiTenantDataSource`
    `MultiTenantDataSource.Builder` | `provider(TenantDataSourceProvider provider)` Set the `TenantDataSourceProvider` to use to obtain configured DataSource instances according to current tenant id.
    `MultiTenantDataSource.Builder` | `resolver(com.holonplatform.core.tenancy.TenantResolver resolver)` Set the `TenantResolver` to use to obtain the current tenant id.

- - ### Method Detail

    - #### resolver

          MultiTenantDataSource.Builder resolver(com.holonplatform.core.tenancy.TenantResolver resolver)

      Set the `TenantResolver` to use to obtain the current tenant id.

      If not setted, the default context resource `TenantResolver.getCurrent()` is used if available.

      Parameters:
        `resolver` - the TenantResolver to set
      Returns:
        this

    - #### provider

          MultiTenantDataSource.Builder provider(TenantDataSourceProvider provider)

      Set the `TenantDataSourceProvider` to use to obtain configured DataSource instances according to current tenant id.

      If not setted, the default context resource `TenantDataSourceProvider.getCurrent()` is used if available.

      Parameters:
        `provider` - the TenantDataSourceProvider to set
      Returns:
        this

    - #### build

          MultiTenantDataSource build()

      Build `MultiTenantDataSource`
      Returns:
        MultiTenantDataSource

Copyright © 2019 The Holon Platform. All rights reserved.