Class SystemPropertyTenantResolver

java.lang.Object
io.micronaut.multitenancy.tenantresolver.SystemPropertyTenantResolver
All Implemented Interfaces:
TenantResolver

@Singleton @Requires(beans=SystemPropertyTenantResolverConfiguration.class) @Requires(property="micronaut.multitenancy.tenantresolver.systemproperty.enabled",value="true",defaultValue="false") public class SystemPropertyTenantResolver extends Object implements TenantResolver
A TenantResolver that resolves from a System property called "tenantId". Useful for testing.
Since:
1.0
Author:
Sergio del Amo