public interface TenantResolver
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | ALLConstant for a mapping to all tenants. | 
| static java.lang.String | DEFAULTThe name of the default tenant. | 
| static java.lang.String | PREFIX | 
| Modifier and Type | Method and Description | 
|---|---|
| java.io.Serializable | resolveTenantIdentifier()Resolves the current tenant identifier. | 
static final java.lang.String PREFIX
static final java.lang.String DEFAULT
static final java.lang.String ALL
java.io.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