com.silentgo.core.config.InterConfig Maven / Gradle / Ivy
package com.silentgo.core.config;
import com.silentgo.core.action.ActionChain;
import com.silentgo.core.cache.CacheManager;
import com.silentgo.core.ioc.bean.BeanWrapper;
import com.silentgo.core.support.BaseFactory;
import com.silentgo.orm.base.DBConfig;
import com.silentgo.servlet.SilentGoContext;
import com.silentgo.utils.PropKit;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Project : silentgo
* com.silentgo.core.config
*
* @author teddyzhu
*
* Created by teddyzhu on 16/9/2.
*/
public class InterConfig {
private final Map, BaseFactory> factoryMap = new HashMap<>();
private final ThreadLocal ctx = new InheritableThreadLocal<>();
private BeanWrapper actionChain;
private PropKit propKit;
private PropKit userProp;
private List dbConfigList = new ArrayList<>();
public Map, BaseFactory> getFactoryMap() {
return factoryMap;
}
private Map, CacheManager> cacheManagerMap = new HashMap<>();
public Map, CacheManager> getCacheManagerMap() {
return cacheManagerMap;
}
public ThreadLocal getCtx() {
return ctx;
}
public BeanWrapper getActionChain() {
return actionChain;
}
public void setActionChain(BeanWrapper actionChain) {
this.actionChain = actionChain;
}
public PropKit getInnerPropKit() {
return propKit;
}
public void setInnerPropKit(PropKit propKit) {
this.propKit = propKit;
}
public PropKit getUserProp() {
return userProp;
}
public void setUserProp(PropKit userProp) {
this.userProp = userProp;
}
public List getDbConfigList() {
return dbConfigList;
}
}