@ConfigurationProperties(value="micronaut.multitenancy.tenantresolver.session") public class SessionTenantResolverConfigurationProperties extends java.lang.Object implements SessionTenantResolverConfiguration
ConfigurationProperties
implementation of SessionTenantResolverConfiguration
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLE
The default enable value.
|
static java.lang.String |
PREFIX |
DEFAULT_ATTRIBUTE
Constructor and Description |
---|
SessionTenantResolverConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttribute() |
boolean |
isEnabled() |
void |
setAttribute(java.lang.String attribute)
Session Attribute name.
|
void |
setEnabled(boolean enabled)
Enables
SessionTenantResolver . |
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLE
public SessionTenantResolverConfigurationProperties()
public boolean isEnabled()
isEnabled
in interface Toggleable
public void setEnabled(boolean enabled)
SessionTenantResolver
. The default value (false).enabled
- True or false.public void setAttribute(java.lang.String attribute)
attribute
- session attribute namepublic java.lang.String getAttribute()
getAttribute
in interface SessionTenantResolverConfiguration