1 36 package org.ungoverned.oscar; 37 38 import java.io.InputStream ; 39 40 53 public interface BundleCache 54 { 55 78 public void initialize(Oscar oscar) 79 throws Exception ; 80 81 88 public BundleArchive[] getArchives() 89 throws Exception ; 90 91 100 public BundleArchive getArchive(long id) 101 throws Exception ; 102 103 120 public BundleArchive create(long id, String location, InputStream is) 121 throws Exception ; 122 123 139 public void update(BundleArchive ba, InputStream is) 140 throws Exception ; 141 142 151 public void purge(BundleArchive ba) 152 throws Exception ; 153 154 163 public void remove(BundleArchive ba) 164 throws Exception ; 165 } | Popular Tags |