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.support.BaseFactory;
import com.silentgo.servlet.SilentGoContext;
import com.silentgo.utils.PropKit;
import java.util.HashMap;
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 ActionChain actionChain;
private ActionChain routeAction;
private PropKit propKit;
private PropKit userProp;
public Map, BaseFactory> getFactoryMap() {
return factoryMap;
}
private Map, CacheManager> cacheManagerMap = new HashMap<>();
public Map, CacheManager> getCacheManagerMap() {
return cacheManagerMap;
}
public ThreadLocal getCtx() {
return ctx;
}
public ActionChain getActionChain() {
return actionChain;
}
public void setActionChain(ActionChain 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 ActionChain getRouteAction() {
return routeAction;
}
public void setRouteAction(ActionChain routeAction) {
this.routeAction = routeAction;
}
}