Search in sources :

Example 1 with ServiceConfig

use of com.ikoori.vip.server.core.template.config.ServiceConfig in project vip by guangdada.

the class AbstractTemplateEngine method initConfig.

public void initConfig() {
    if (this.contextConfig == null) {
        this.contextConfig = new ContextConfig();
    }
    if (this.controllerConfig == null) {
        this.controllerConfig = new ControllerConfig();
    }
    if (this.pageConfig == null) {
        this.pageConfig = new PageConfig();
    }
    if (this.daoConfig == null) {
        this.daoConfig = new DaoConfig();
    }
    if (this.serviceConfig == null) {
        this.serviceConfig = new ServiceConfig();
    }
    this.controllerConfig.setContextConfig(this.contextConfig);
    this.controllerConfig.init();
    this.serviceConfig.setContextConfig(this.contextConfig);
    this.serviceConfig.init();
    this.daoConfig.setContextConfig(this.contextConfig);
    this.daoConfig.init();
    this.pageConfig.setContextConfig(this.contextConfig);
    this.pageConfig.init();
}
Also used : ContextConfig(com.ikoori.vip.server.core.template.config.ContextConfig) ControllerConfig(com.ikoori.vip.server.core.template.config.ControllerConfig) DaoConfig(com.ikoori.vip.server.core.template.config.DaoConfig) PageConfig(com.ikoori.vip.server.core.template.config.PageConfig) ServiceConfig(com.ikoori.vip.server.core.template.config.ServiceConfig)

Aggregations

ContextConfig (com.ikoori.vip.server.core.template.config.ContextConfig)1 ControllerConfig (com.ikoori.vip.server.core.template.config.ControllerConfig)1 DaoConfig (com.ikoori.vip.server.core.template.config.DaoConfig)1 PageConfig (com.ikoori.vip.server.core.template.config.PageConfig)1 ServiceConfig (com.ikoori.vip.server.core.template.config.ServiceConfig)1