1 11 12 package org.eclipse.osgi.baseadaptor.hooks; 13 14 import java.io.*; 15 import java.util.Dictionary ; 16 import org.eclipse.osgi.baseadaptor.BaseData; 17 import org.eclipse.osgi.framework.adaptor.BundleData; 18 import org.eclipse.osgi.framework.util.KeyedElement; 19 import org.osgi.framework.BundleException; 20 21 29 public interface StorageHook extends KeyedElement { 30 37 int getStorageVersion(); 38 39 48 StorageHook create(BaseData bundledata) throws BundleException; 49 50 58 void initialize(Dictionary manifest) throws BundleException; 59 60 73 StorageHook load(BaseData bundledata, DataInputStream is) throws IOException; 74 75 85 void save(DataOutputStream os) throws IOException; 86 87 96 void copy(StorageHook storageHook); 97 98 103 void validate() throws IllegalArgumentException ; 104 105 115 Dictionary getManifest(boolean firstLoad) throws BundleException; 116 117 126 boolean forgetStatusChange(int status); 127 128 137 boolean forgetStartLevelChange(int startlevel); 138 139 148 boolean matchDNChain(String pattern); 149 } 150 | Popular Tags |