Package com.jk.web.multitenant
Class JKTenantContext
java.lang.Object
com.jk.web.multitenant.JKTenantContext
This class represents the context of the tenant web application.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
clear()
This method clears the current tenant by nullifying it.static String
This method retrieves the current tenant in this context.static void
setCurrentTenant
(String tenant) This method sets the current tenant in this context to the provided value.
-
Constructor Details
-
JKTenantContext
public JKTenantContext()
-
-
Method Details
-
getCurrentTenant
This method retrieves the current tenant in this context.- Returns:
- the current tenant in this context.
-
setCurrentTenant
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.
-