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


Java ExtendedRecordListener类代码示例

本文整理汇总了Java中org.microemu.util.ExtendedRecordListener的典型用法代码示例。如果您正苦于以下问题:Java ExtendedRecordListener类的具体用法?Java ExtendedRecordListener怎么用?Java ExtendedRecordListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: deleteRecordStore

import org.microemu.util.ExtendedRecordListener; //导入依赖的package包/类
public void deleteRecordStore(final String recordStoreName) throws RecordStoreNotFoundException,
		RecordStoreException {
	final File storeFile = new File(getSuiteFolder(), recordStoreName + RECORD_STORE_SUFFIX);

	RecordStoreImpl recordStoreImpl = (RecordStoreImpl) testOpenRecordStores.get(storeFile.getName());
	if (recordStoreImpl != null && recordStoreImpl.isOpen()) {
		throw new RecordStoreException();
	}

	try {
		recordStoreImpl = loadFromDisk(storeFile);
	} catch (FileNotFoundException ex) {
		throw new RecordStoreNotFoundException(recordStoreName);
	}

	try {
		AccessController.doPrivileged(new PrivilegedExceptionAction() {
			public Object run() throws FileNotFoundException {
				storeFile.delete();
				fireRecordStoreListener(ExtendedRecordListener.RECORDSTORE_DELETE, recordStoreName);
				return null;
			}
		}, acc);
	} catch (PrivilegedActionException e) {
		Logger.error("Unable remove file " + storeFile, e);
		throw new RecordStoreException();
	}
}
 
开发者ID:freeVM,项目名称:freeVM,代码行数:29,代码来源:FileRecordStoreManager.java

示例2: deleteRecordStore

import org.microemu.util.ExtendedRecordListener; //导入依赖的package包/类
public void deleteRecordStore(String recordStoreName) throws RecordStoreNotFoundException, RecordStoreException {
	CookieContent cookieContent = (CookieContent) cookies.get(recordStoreName);
	if (cookieContent == null) {
		throw new RecordStoreNotFoundException(recordStoreName);
	}

	removeCookie(recordStoreName, cookieContent);
	cookies.remove(recordStoreName);

	fireRecordStoreListener(ExtendedRecordListener.RECORDSTORE_DELETE, recordStoreName);

	System.out.println("deleteRecordStore: " + recordStoreName);
}
 
开发者ID:freeVM,项目名称:freeVM,代码行数:14,代码来源:CookieRecordStoreManager.java

示例3: setRecordListener

import org.microemu.util.ExtendedRecordListener; //导入依赖的package包/类
public void setRecordListener(ExtendedRecordListener recordListener) {
	this.recordListener = recordListener;
}
 
开发者ID:Helltar,项目名称:AMPASIDE,代码行数:4,代码来源:AndroidRecordStoreManager.java

示例4: setRecordListener

import org.microemu.util.ExtendedRecordListener; //导入依赖的package包/类
void setRecordListener(ExtendedRecordListener recordListener); 
开发者ID:BombusMod,项目名称:BombusMod,代码行数:2,代码来源:RecordStoreManager.java


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