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 Details

    • PREFIX

      public static final String PREFIX
      Configuration Properties Prefix.
      See Also:
    • DEFAULT_ENABLE

      public static final boolean DEFAULT_ENABLE
      The default enable value.
      See Also:
    • DEFAULT_SYSTEM_PROPERTY_NAME

      public static final String DEFAULT_SYSTEM_PROPERTY_NAME
      The default system property name.
      See Also:
  • Constructor Details

    • SystemPropertyTenantResolverConfigurationProperties

      public SystemPropertyTenantResolverConfigurationProperties()
  • Method Details

    • setPropertyName

      public void setPropertyName(String propertyName)
      System property name. Default value ("tenantId").
      Parameters:
      propertyName - System property name.
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
    • setEnabled

      public void setEnabled(boolean enabled)
      Enable SystemPropertyTenantResolver. Default value (false).
      Parameters:
      enabled - true or false
    • getSystemPropertyName

      public String getSystemPropertyName()
      Specified by:
      getSystemPropertyName in interface SystemPropertyTenantResolverConfiguration
      Returns:
      System property name.