Class TenantRoutingDataSource

  • All Implemented Interfaces:
    Wrapper, CommonDataSource, DataSource, org.springframework.beans.factory.InitializingBean

    public class TenantRoutingDataSource
    extends org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource
    Experimental
    Since:
    4.2
    Author:
    janv
    • Constructor Detail

      • TenantRoutingDataSource

        public TenantRoutingDataSource()
    • Method Detail

      • setTenantService

        public void setTenantService​(TenantService tenantService)
      • setBaseDataSource

        public void setBaseDataSource​(org.apache.commons.dbcp.BasicDataSource baseDataSource)
      • determineCurrentLookupKey

        protected Object determineCurrentLookupKey()
        Specified by:
        determineCurrentLookupKey in class org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource
      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Overrides:
        afterPropertiesSet in class org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource