1 11 12 package org.eclipse.osgi.framework.adaptor; 13 14 import java.io.File ; 15 import java.io.IOException ; 16 import java.net.URL ; 17 import java.util.Dictionary ; 18 import java.util.Enumeration ; 19 import org.osgi.framework.*; 20 import org.osgi.framework.Bundle; 21 import org.osgi.framework.BundleException; 22 23 35 public interface BundleData { 36 37 38 public static final int TYPE_FRAGMENT = 0x00000001; 39 40 public static final int TYPE_FRAMEWORK_EXTENSION = 0x00000002; 41 42 public static final int TYPE_BOOTCLASSPATH_EXTENSION = 0x00000004; 43 44 public static final int TYPE_SINGLETON = 0x00000008; 45 46 47 61 public BundleClassLoader createClassLoader(ClassLoaderDelegate delegate, BundleProtectionDomain domain, String [] bundleclasspath); 62 63 72 public URL getEntry(String path); 73 74 84 public Enumeration getEntryPaths(String path); 85 86 95 public String findLibrary(String libname); 96 97 105 public void installNativeCode(String [] nativepaths) throws BundleException; 106 107 114 115 public File getDataFile(String path); 116 117 123 public Dictionary getManifest() throws BundleException; 124 125 130 public long getBundleID(); 131 132 137 public String getLocation(); 138 139 143 public long getLastModified(); 144 145 149 public void close() throws IOException ; 150 151 156 public void open() throws IOException ; 157 158 162 public void setBundle(Bundle bundle); 163 164 168 public int getStartLevel(); 169 170 176 public int getStatus(); 177 178 183 public void setStartLevel(int value); 184 185 190 public void setStatus(int value); 191 192 196 public void save() throws IOException ; 197 198 203 public String getSymbolicName(); 204 205 210 public Version getVersion(); 211 212 216 public int getType(); 217 218 223 public String [] getClassPath() throws BundleException; 224 225 230 public String getActivator(); 231 232 237 public String getExecutionEnvironment(); 238 239 244 public String getDynamicImports(); 245 246 274 public boolean matchDNChain(String pattern); 275 } 276 | Popular Tags |