Interface TenantConnectionResolver
- All Known Implementing Classes:
DataSourceTenantConnectionResolver
public interface TenantConnectionResolver
Resolves the
ConnectionProvider
for tenants dynamically.- Author:
- Michael Schnell
-
Method Summary
-
Method Details
-
resolve
Returns a connection provider for the current tenant based on the context.- Parameters:
tenantId
- the tenant identifier. Required value that cannot be null.- Returns:
- Hibernate connection provider for the current provider. A non-null value is required.
-