当前位置: 首页>>代码示例>>Java>>正文


Java JCS.getInstance方法代码示例

本文整理汇总了Java中org.apache.jcs.JCS.getInstance方法的典型用法代码示例。如果您正苦于以下问题:Java JCS.getInstance方法的具体用法?Java JCS.getInstance怎么用?Java JCS.getInstance使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.jcs.JCS的用法示例。


在下文中一共展示了JCS.getInstance方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: JCSCache

import org.apache.jcs.JCS; //导入方法依赖的package包/类
public JCSCache(String regionName, java.util.Properties properties) throws CacheException {
	
	try {
		region = JCS.getInstance(regionName);
	}
	catch (org.apache.jcs.access.exception.CacheException e) {
		log.error("could not create JCS region", e);
		throw new CacheException(e);
	}
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:11,代码来源:JCSCache.java

示例2: DataSourceFactory

import org.apache.jcs.JCS; //导入方法依赖的package包/类
public DataSourceFactory(Collection<DataSource> sources, boolean caching) {
	_sources = sources;
	_caching = caching;
	if (_caching) {
		try {
			_cache = JCS.getInstance("s2sCache");
		} catch (CacheException e) {
			log.error("Unable to setup JCS cache; caching not enabled.", e);
			_caching = false;
		}
	}
}
 
开发者ID:tetherless-world,项目名称:s2s,代码行数:13,代码来源:DataSourceFactory.java

示例3: InterfaceFactory

import org.apache.jcs.JCS; //导入方法依赖的package包/类
public InterfaceFactory(Collection<DataSource> sources, boolean caching) {
	_sources = sources;
	_caching = caching;
	if (_caching) {
		try {
			_cache = JCS.getInstance("s2sCache");
		} catch (CacheException e) {
			log.error("Unable to setup JCS cache; caching not enabled.", e);
			_caching = false;
		}
	}
}
 
开发者ID:tetherless-world,项目名称:s2s,代码行数:13,代码来源:InterfaceFactory.java

示例4: InputFactory

import org.apache.jcs.JCS; //导入方法依赖的package包/类
public InputFactory( Collection<DataSource> sources, boolean caching) {
	_sources = sources;
	_caching = caching;
	if (_caching) {
		try {
			_cache = JCS.getInstance("s2sCache");
		} catch (CacheException e) {
			log.error("Unable to setup JCS cache; caching not enabled.", e);
			_caching = false;
		}
	}
}
 
开发者ID:tetherless-world,项目名称:s2s,代码行数:13,代码来源:InputFactory.java

示例5: SearchServiceFactory

import org.apache.jcs.JCS; //导入方法依赖的package包/类
public SearchServiceFactory(Collection<DataSource> sources, boolean caching) {
	_sources = sources;
	_caching = caching;
	if (_caching) {
		try {
			_cache = JCS.getInstance("s2sCache");
		} catch (CacheException e) {
			log.error("Unable to setup JCS cache; caching not enabled.", e);
			_caching = false;
		}
	}
}
 
开发者ID:tetherless-world,项目名称:s2s,代码行数:13,代码来源:SearchServiceFactory.java

示例6: WidgetFactory

import org.apache.jcs.JCS; //导入方法依赖的package包/类
public WidgetFactory(Collection<DataSource> sources, boolean caching) {
	_sources = sources;
	_caching = caching;
	if (_caching) {
		try {
			_cache = JCS.getInstance("s2sCache");
		} catch (CacheException e) {
			log.error("Unable to setup JCS cache; caching not enabled.", e);
			_caching = false;
		}
	}
}
 
开发者ID:tetherless-world,项目名称:s2s,代码行数:13,代码来源:WidgetFactory.java

示例7: FacetCollectionFactory

import org.apache.jcs.JCS; //导入方法依赖的package包/类
public FacetCollectionFactory(Collection<DataSource> sources, boolean caching) {
	_sources = sources;
	_caching = caching;
	if (_caching) {
		try {
			_cache = JCS.getInstance("s2sCache");
		} catch (CacheException e) {
			log.error("Unable to setup JCS cache; caching not enabled.", e);
			_caching = false;
		}
	}
}
 
开发者ID:tetherless-world,项目名称:s2s,代码行数:13,代码来源:FacetCollectionFactory.java

示例8: ObjectCacheJCSImpl

import org.apache.jcs.JCS; //导入方法依赖的package包/类
/**
 * Constructor used by the {@link ObjectCacheJCSPerClassImpl}
 */
public ObjectCacheJCSImpl(String name)
{
    regionName = (name != null ? name : DEFAULT_REGION);
    try
    {
        jcsCache = JCS.getInstance(regionName);
    }
    catch(Exception e)
    {
        throw new RuntimeCacheException("Can't instantiate JCS ObjectCacheImplementation", e);
    }
}
 
开发者ID:KualiCo,项目名称:ojb,代码行数:16,代码来源:ObjectCacheJCSImpl.java

示例9: JCSCache

import org.apache.jcs.JCS; //导入方法依赖的package包/类
public JCSCache() {
	try {
		cache = JCS.getInstance("OUR_REGION");
	} catch (CacheException e) {
		e.printStackTrace();
	}
}
 
开发者ID:davy-zhang,项目名称:CodeForBlog,代码行数:8,代码来源:JCSCache.java

示例10: setUp

import org.apache.jcs.JCS; //导入方法依赖的package包/类
protected void setUp()
    throws Exception
{
    super.setUp();
    org.apache.jcs.JCS.setConfigFilename( "/TestThrash.ccf" );
    jcs = JCS.getInstance( "testcache" );
}
 
开发者ID:mgarber,项目名称:scriptureV2,代码行数:8,代码来源:JCSTrashTest.java

示例11: initCacheManager

import org.apache.jcs.JCS; //导入方法依赖的package包/类
/**
 * 初始化缓存管理器
 * 
 * @throws CacheException
 *             缓存异常
 */
public static void initCacheManager() throws CacheException {
    CacheManager.cache = JCS.getInstance(CACHE_REGION_NAME);
}
 
开发者ID:luckyyeah,项目名称:YiDu-Novel,代码行数:10,代码来源:CacheManager.java


注:本文中的org.apache.jcs.JCS.getInstance方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。