1 11 12 package org.eclipse.osgi.framework.adaptor; 13 14 import java.io.IOException ; 15 import java.net.URLConnection ; 16 import java.util.Properties ; 17 import org.eclipse.osgi.framework.log.FrameworkLog; 18 import org.eclipse.osgi.service.resolver.PlatformAdmin; 19 import org.eclipse.osgi.service.resolver.State; 20 import org.osgi.framework.BundleContext; 21 import org.osgi.framework.BundleException; 22 23 42 43 public interface FrameworkAdaptor { 44 45 public static final String FRAMEWORK_SYMBOLICNAME = "org.eclipse.osgi"; 47 55 public void initialize(EventPublisher eventPublisher); 56 57 63 public void initializeStorage() throws IOException ; 64 65 71 public void compactStorage() throws IOException ; 72 73 83 public Properties getProperties(); 84 85 95 public BundleData[] getInstalledBundles(); 96 97 105 public URLConnection mapLocationToURLConnection(String location) throws BundleException; 106 107 124 public BundleOperation installBundle(String location, URLConnection source); 125 126 143 public BundleOperation updateBundle(BundleData bundledata, URLConnection source); 144 145 158 public BundleOperation uninstallBundle(BundleData bundledata); 159 160 166 public long getTotalFreeSpace() throws IOException ; 167 168 175 public PermissionStorage getPermissionStorage() throws IOException ; 176 177 182 public ServiceRegistry getServiceRegistry(); 183 184 193 public void frameworkStart(BundleContext context) throws BundleException; 194 195 204 public void frameworkStop(BundleContext context) throws BundleException; 205 206 214 public void frameworkStopping(BundleContext context); 215 216 220 public int getInitialBundleStartLevel(); 221 222 226 public void setInitialBundleStartLevel(int value); 227 228 234 public FrameworkLog getFrameworkLog(); 235 236 243 public BundleData createSystemBundleData() throws BundleException; 244 245 249 public BundleWatcher getBundleWatcher(); 250 251 258 public PlatformAdmin getPlatformAdmin(); 259 260 269 public State getState(); 270 271 278 public ClassLoader getBundleClassLoaderParent(); 279 280 288 public void handleRuntimeError(Throwable error); 289 290 319 public boolean matchDNChain(String pattern, String dnChain[]); 320 } 321 | Popular Tags |