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 java.lang.Object implements SystemPropertyTenantResolverConfigurationConfigurationPropertiesproperties implementation ofSystemPropertyTenantResolverConfiguration.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_ENABLEThe default enable value.static java.lang.StringDEFAULT_SYSTEM_PROPERTY_NAMEThe default system property name.static java.lang.StringPREFIXConfiguration Properties Prefix.
-
Constructor Summary
Constructors Constructor Description SystemPropertyTenantResolverConfigurationProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetSystemPropertyName()booleanisEnabled()voidsetEnabled(boolean enabled)EnableSystemPropertyTenantResolver.voidsetPropertyName(java.lang.String propertyName)System property name.
-
-
-
Field Detail
-
PREFIX
public static final java.lang.String PREFIX
Configuration Properties Prefix.- See Also:
- Constant Field Values
-
DEFAULT_ENABLE
public static final boolean DEFAULT_ENABLE
The default enable value.- See Also:
- Constant Field Values
-
DEFAULT_SYSTEM_PROPERTY_NAME
public static final java.lang.String DEFAULT_SYSTEM_PROPERTY_NAME
The default system property name.- See Also:
- Constant Field Values
-
-
Method Detail
-
setPropertyName
public void setPropertyName(java.lang.String propertyName)
System property name. Default value ("tenantId").- Parameters:
propertyName- System property name.
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled)
EnableSystemPropertyTenantResolver. Default value (false).- Parameters:
enabled- true or false
-
getSystemPropertyName
public java.lang.String getSystemPropertyName()
- Specified by:
getSystemPropertyNamein interfaceSystemPropertyTenantResolverConfiguration- Returns:
- System property name.
-
-