public interface TenantResolver
| Modifier and Type | Field and Description | 
|---|---|
| static String | ALLConstant for a mapping to all tenants. | 
| static String | DEFAULTThe name of the default tenant. | 
| static String | PREFIX | 
| Modifier and Type | Method and Description | 
|---|---|
| Serializable | resolveTenantIdentifier()Resolves the current tenant identifier. | 
static final String PREFIX
static final String DEFAULT
static final String ALL
Serializable resolveTenantIdentifier() throws TenantNotFoundException
Resolves the current tenant identifier.
In a Multi Tenant setup where a single database is being used amongst multiple tenants this would be the object that is used as the tenantId property for each domain class.
TenantNotFoundException - if tenant not found