Class TenantEvaluationContext
java.lang.Object
io.micronaut.multitenancy.expression.TenantEvaluationContext
@Internal
@Singleton
@Requires(beans=TenantResolver.class)
public final class TenantEvaluationContext
extends Object
Context for supporting annotation expressions with tenant id.
- Since:
- 5.2.0
- Author:
- Tim Yates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
Resolves and returns the Tenant ID withTenantResolver.resolveTenantIdentifier()
.
-
Constructor Details
-
TenantEvaluationContext
- Parameters:
tenantResolver
- The enabled and configured TenantResolver
-
-
Method Details
-
getTenantId
Resolves and returns the Tenant ID withTenantResolver.resolveTenantIdentifier()
.- Returns:
- the tenant id or null.
-