KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > cache > statetransfer > CorruptedFileCacheLoader


1 package org.jboss.cache.statetransfer;
2
3 import java.io.IOException JavaDoc;
4 import java.io.ObjectOutputStream JavaDoc;
5 import org.jboss.cache.Fqn;
6 import org.jboss.cache.loader.FileCacheLoader;
7
8 public class CorruptedFileCacheLoader extends FileCacheLoader
9 {
10    public CorruptedFileCacheLoader()
11    {
12       super();
13    }
14    
15    @Override JavaDoc
16    public void loadState(Fqn subtree, ObjectOutputStream JavaDoc os) throws Exception JavaDoc
17    {
18       super.loadState(subtree, os);
19       throw new IOException JavaDoc("see StateTransfer200Test#testCacheLoaderFailure()");
20    }
21 }
22
Popular Tags