Class ConfiguredTenantSupplier
java.lang.Object
org.chenile.core.tenant.ConfiguredTenantSupplier
- All Implemented Interfaces:
TenantSupplier
The default
TenantSupplier. The tenants are, in order:
chenile.tenants, a comma-separated list, when it is set;- the keys of the "multiTenantTargetDataSources" map, when multi-datasource-utils is in use (looked up by bean name on every call, so a refreshed map is picked up and the class is not needed on the class path);
- otherwise none: a single-tenant deployment.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BeanFactorystatic final StringBean name of the tenant to DataSource map published by multi-datasource-utils. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MULTI_TENANT_DATA_SOURCES
Bean name of the tenant to DataSource map published by multi-datasource-utils.- See Also:
-
configured
-
beans
-
-
Constructor Details
-
ConfiguredTenantSupplier
-
-
Method Details
-
tenants
- Specified by:
tenantsin interfaceTenantSupplier
-
clean
-
CHENILE