Class PrincipalTenantResolverConfigurationProperties
java.lang.Object
io.micronaut.multitenancy.tenantresolver.PrincipalTenantResolverConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
,PrincipalTenantResolverConfiguration
@ConfigurationProperties("micronaut.multitenancy.tenantresolver.principal")
public class PrincipalTenantResolverConfigurationProperties
extends Object
implements PrincipalTenantResolverConfiguration
ConfigurationProperties
implementation of PrincipalTenantResolverConfiguration
.- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default enable value.static final String
Configuration Properties prefix. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setEnabled
(boolean enabled) EnablesPrincipalTenantResolver
.
-
Field Details
-
PREFIX
Configuration Properties prefix.- See Also:
-
DEFAULT_ENABLE
public static final boolean DEFAULT_ENABLEThe default enable value.- See Also:
-
-
Constructor Details
-
PrincipalTenantResolverConfigurationProperties
public PrincipalTenantResolverConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) EnablesPrincipalTenantResolver
. The default enable is false.- Parameters:
enabled
- True or false.
-