1 18 package org.apache.activemq.kaha; 19 20 import java.io.File ; 21 import java.io.IOException ; 22 import org.apache.activemq.kaha.impl.KahaStore; 23 24 29 public class StoreFactory{ 30 31 32 39 public static Store open(String name,String mode) throws IOException { 40 return new KahaStore(name,mode); 41 } 42 43 49 public static boolean delete(String name) throws IOException { 50 KahaStore store = new KahaStore(name,"rw"); 51 return store.delete(); 52 } 53 } 54 | Popular Tags |