本文整理汇总了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();
}
}
示例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);
}
示例3: setRecordListener
import org.microemu.util.ExtendedRecordListener; //导入依赖的package包/类
public void setRecordListener(ExtendedRecordListener recordListener) {
this.recordListener = recordListener;
}
示例4: setRecordListener
import org.microemu.util.ExtendedRecordListener; //导入依赖的package包/类
void setRecordListener(ExtendedRecordListener recordListener);