Class TenantConfigImpl

  • All Implemented Interfaces:
    TenantConfig

    public class TenantConfigImpl
    extends Object
    implements TenantConfig
    The default implementation of TenantConfig uses configuration provided from axelor-config.properties.

    The format of axelor-config.properties are as follows:

     db.default.visible = false
     db.default.driver = org.postgresql.Driver
     db.default.url = jdbc:postgresql://localhost:5432/axelor-db-demo
     db.default.user = axelor
     db.default.password =
    
     db.company1.name = Company 1
     db.company1.driver = org.postgresql.Driver
     db.company1.url = jdbc:postgresql://localhost:5432/axelor-db1
     db.company1.user = axelor
     db.company1.password =
    
     db.company2.name = Company 2
     db.company2.driver = org.postgresql.Driver
     db.company2.url = jdbc:postgresql://localhost:5432/axelor-db2
     db.company2.user = axelor
     db.company2.password =
     

    The format of key name is db.[tenant-id].[config-name]