Class SystemPropertyTenantResolverConfigurationProperties
java.lang.Object
io.micronaut.multitenancy.tenantresolver.SystemPropertyTenantResolverConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
,SystemPropertyTenantResolverConfiguration
@ConfigurationProperties("micronaut.multitenancy.tenantresolver.systemproperty")
public class SystemPropertyTenantResolverConfigurationProperties
extends Object
implements SystemPropertyTenantResolverConfiguration
ConfigurationProperties
properties implementation of SystemPropertyTenantResolverConfiguration
.- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setEnabled
(boolean enabled) EnableSystemPropertyTenantResolver
.void
setPropertyName
(String propertyName) System property name.
-
Field Details
-
PREFIX
Configuration Properties Prefix.- See Also:
-
DEFAULT_ENABLE
public static final boolean DEFAULT_ENABLEThe default enable value.- See Also:
-
DEFAULT_SYSTEM_PROPERTY_NAME
The default system property name.- See Also:
-
-
Constructor Details
-
SystemPropertyTenantResolverConfigurationProperties
public SystemPropertyTenantResolverConfigurationProperties()
-
-
Method Details
-
setPropertyName
System property name. Default value ("tenantId").- Parameters:
propertyName
- System property name.
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) EnableSystemPropertyTenantResolver
. Default value (false).- Parameters:
enabled
- true or false
-
getSystemPropertyName
- Specified by:
getSystemPropertyName
in interfaceSystemPropertyTenantResolverConfiguration
- Returns:
- System property name.
-