com.lobo.rauffer.springboot.multitenant.mongodb.TenantResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-multitenant-mongodb Show documentation
Show all versions of spring-boot-multitenant-mongodb Show documentation
An useful Mongodb factory which allows applications to choose the database name at runtime.
The newest version!
package com.lobo.rauffer.springboot.multitenant.mongodb;
import javax.servlet.http.HttpServletRequest;
/**
* Interface for resolving tenant name based on the user's request.
*
* @author Rauffer Lobo
*/
public interface TenantResolver {
/**
* Resolves the tenant name.
*
* @param request the user's request
* @return
*/
String resolve(HttpServletRequest request);
}