【Java开源代码栏目提醒】:网学会员为广大网友收集整理了,WebMetaDataLoaderFactory.java,希望对大家有所帮助!
package com.cownew.PIS.framework.
web.helper;
import com.cownew.PIS.framework.common.metaDataMgr.IMetaDataLoader;
import com.cownew.PIS.framework.common.metaDataMgr.MetaDataLoader;
public class WebMetaDataLoaderFactory
{
private static MetaDataLoader loader;
public static IMetaDataLoader getLoader()
{
if (loader != null)
{
return loader;
}
WebConfig config = WebConfig.getInstance();
String entityCacheFile = config.getEntityCacheFile();
String metaDataPath = config.getMetaDataPath();
loader = new MetaDataLoader(metaDataPath, entityCacheFile);
loader.setCacheEnable(config.isMetaCacheEnabled());
return loader;
}
}