- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
For multi-tenancy via DB supply the DataSource given the tenantId.
-
Method Summary
Modifier and TypeMethodDescriptiondataSource
(Object tenantId) Return the DataSource to use for the given current tenant.default void
shutdown
(boolean deregisterDriver) Shutdown all the DataSources.
-
Method Details
-
dataSource
Return the DataSource to use for the given current tenant. -
shutdown
default void shutdown(boolean deregisterDriver) Shutdown all the DataSources.
-