Based on springs {@link AbstractRoutingDataSource} idea, this is a{@link DataSource} that routes or delegates to another data source dependingon the tenant details passed in the request. The tenant details are process earlier and stored in a {@link ThreadLocal}. The {@link RoutingDataSourceService} is responsible for returning theappropriate {@link DataSource} for the tenant of this request.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.