1 11 package org.eclipse.osgi.service.resolver; 12 13 import java.io.*; 14 import java.util.Dictionary ; 15 import java.util.Map ; 16 import org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl; 17 import org.osgi.framework.*; 18 19 26 public interface StateObjectFactory { 27 28 33 public static final StateObjectFactory defaultFactory = new StateObjectFactoryImpl(); 34 35 42 public State createState(); 43 44 51 public State createState(boolean resolver); 52 53 61 public State createState(State state); 62 63 84 public BundleDescription createBundleDescription(long id, String symbolicName, Version version, String location, BundleSpecification[] required, HostSpecification host, ImportPackageSpecification[] imports, ExportPackageDescription[] exports, String [] providedPackages, boolean singleton); 85 86 113 public BundleDescription createBundleDescription(long id, String symbolicName, Version version, String location, BundleSpecification[] required, HostSpecification host, ImportPackageSpecification[] imports, ExportPackageDescription[] exports, String [] providedPackages, boolean singleton, boolean attachFragments, boolean dynamicFragments, String platformFilter, String executionEnvironment, GenericSpecification[] genericRequires, GenericDescription[] genericCapabilities); 114 115 135 public BundleDescription createBundleDescription(long id, String symbolicName, Version version, String location, BundleSpecification[] required, HostSpecification host, ImportPackageSpecification[] imports, ExportPackageDescription[] exports, boolean singleton, boolean attachFragments, boolean dynamicFragments, String platformFilter, String [] executionEnvironments, GenericSpecification[] genericRequires, GenericDescription[] genericCapabilities); 136 137 138 150 public BundleDescription createBundleDescription(State state, Dictionary manifest, String location, long id) throws BundleException; 151 152 164 public BundleDescription createBundleDescription(Dictionary manifest, String location, long id) throws BundleException; 165 166 172 public BundleDescription createBundleDescription(BundleDescription original); 173 174 184 public BundleSpecification createBundleSpecification(String requiredSymbolicName, VersionRange requiredVersionRange, boolean export, boolean optional); 185 186 192 public BundleSpecification createBundleSpecification(BundleSpecification original); 193 194 202 public HostSpecification createHostSpecification(String hostSymbolicName, VersionRange hostVersionRange); 203 204 210 public HostSpecification createHostSpecification(HostSpecification original); 211 212 224 public ImportPackageSpecification createImportPackageSpecification(String packageName, VersionRange versionRange, String bundleSymbolicName, VersionRange bundleVersionRange, Map directives, Map attributes, BundleDescription importer); 225 226 231 public ImportPackageSpecification createImportPackageSpecification(ImportPackageSpecification original); 232 233 246 public ExportPackageDescription createExportPackageDescription(String packageName, Version version, Map directives, Map attributes, boolean root, BundleDescription exporter); 247 248 256 public GenericDescription createGenericDescription(String name, String type, Version version, Map attributes); 257 258 268 public GenericSpecification createGenericSpecification(String name, String type, String matchingFilter, boolean optional, boolean multiple) throws InvalidSyntaxException; 269 270 275 public ExportPackageDescription createExportPackageDescription(ExportPackageDescription original); 276 277 289 public void writeState(State state, OutputStream stream) throws IOException; 290 291 303 public void writeState(State state, DataOutputStream stream) throws IOException; 304 305 315 public void writeState(State state, File stateDirectory) throws IOException; 316 317 327 public State readState(InputStream stream) throws IOException; 328 329 339 public State readState(DataInputStream stream) throws IOException; 340 341 349 public State readState(File stateDirectory) throws IOException; 350 351 } 352 | Popular Tags |