Class JKTenantContext

java.lang.Object
com.jk.web.multitenant.JKTenantContext

public class JKTenantContext extends Object
This class represents the context of the tenant web application.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Details

    • JKTenantContext

      public JKTenantContext()
  • Method Details

    • getCurrentTenant

      public static String getCurrentTenant()
      This method retrieves the current tenant in this context.
      Returns:
      the current tenant in this context.
    • setCurrentTenant

      public static void setCurrentTenant(String tenant)
      This method sets the current tenant in this context to the provided value.
      Parameters:
      tenant - Specifies the new tenant in this context.
    • clear

      public static void clear()
      This method clears the current tenant by nullifying it.