1 11 12 package org.eclipse.osgi.baseadaptor.hooks; 13 14 import java.io.IOException ; 15 import java.net.URLConnection ; 16 import java.util.Properties ; 17 import org.eclipse.osgi.baseadaptor.BaseAdaptor; 18 import org.eclipse.osgi.baseadaptor.HookRegistry; 19 import org.eclipse.osgi.framework.adaptor.EventPublisher; 20 import org.eclipse.osgi.framework.adaptor.FrameworkAdaptor; 21 import org.eclipse.osgi.framework.log.FrameworkLog; 22 import org.osgi.framework.BundleContext; 23 import org.osgi.framework.BundleException; 24 25 32 public interface AdaptorHook { 33 38 public void initialize(BaseAdaptor adaptor); 39 40 47 public void frameworkStart(BundleContext context) throws BundleException; 48 49 56 public void frameworkStop(BundleContext context) throws BundleException; 57 58 64 public void frameworkStopping(BundleContext context); 65 66 72 public void addProperties(Properties properties); 73 74 83 public URLConnection mapLocationToURLConnection(String location) throws IOException ; 84 85 90 public void handleRuntimeError(Throwable error); 91 92 101 public boolean matchDNChain(String pattern, String [] dnChain); 102 103 110 public FrameworkLog createFrameworkLog(); 111 } 112 | Popular Tags |