public static interface MultiTenantDataSource.Builder
| 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. |
MultiTenantDataSource.Builder resolver(com.holonplatform.core.tenancy.TenantResolver resolver)
TenantResolver to use to obtain the current tenant id.
If not setted, the default context resource TenantResolver.getCurrent() is used if available.
resolver - the TenantResolver to setMultiTenantDataSource.Builder provider(TenantDataSourceProvider provider)
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.
provider - the TenantDataSourceProvider to setMultiTenantDataSource build()
MultiTenantDataSourceCopyright © 2019 The Holon Platform. All rights reserved.