1 17 package org.apache.excalibur.store; 18 19 import java.io.IOException ; 20 import java.util.Enumeration ; 21 22 import org.apache.avalon.framework.component.Component; 23 24 36 public interface Store 37 extends Component 38 { 39 40 String ROLE = Store.class.getName(); 41 42 43 String TRANSIENT_STORE = ROLE + "/TransientStore"; 44 45 46 String PERSISTENT_STORE = ROLE + "/PersistentStore"; 47 48 51 Object get( Object key ); 52 53 58 void store( Object key, Object value ) throws IOException ; 59 60 65 void free(); 66 67 70 void remove( Object key ); 71 72 75 void clear(); 76 77 80 boolean containsKey( Object key ); 81 82 85 Enumeration keys(); 86 87 91 int size(); 92 } 93 | Popular Tags |