1 16 package org.apache.cocoon.components.store; 17 18 import org.apache.avalon.framework.component.Component; 19 20 import java.io.IOException ; 21 import java.util.Enumeration ; 22 23 35 public interface Store extends Component { 36 37 String ROLE = "org.apache.cocoon.components.store.Store/Repository"; 38 39 String TRANSIENT_CACHE = "org.apache.cocoon.components.store.Store/TransientCache"; 40 String PERSISTENT_CACHE = "org.apache.cocoon.components.store.Store/PersistentCache"; 41 42 45 Object get(Object key); 46 47 52 void store(Object key, Object value) throws IOException ; 53 54 59 void hold(Object key, Object value) throws IOException ; 60 61 void free(); 62 63 66 void remove(Object key); 67 68 71 boolean containsKey(Object key); 72 73 76 Enumeration keys(); 77 78 82 int size(); 83 } 84 | Popular Tags |