All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lobo.rauffer.springboot.multitenant.mongodb.TenantResolver Maven / Gradle / Ivy

Go to download

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);
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy