StateObjectFactory.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)
Creates a bundle description from the given parameters.
StateObjectFactory.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,
NativeCodeSpecification nativeCode)
Creates a bundle description from the given parameters.
StateObjectFactory.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)
StateObjectFactory.createBundleDescription(long id,
String symbolicName,
Version version,
String location,
BundleSpecification[] required,
HostSpecification host,
ImportPackageSpecification[] imports,
ExportPackageDescription[] exports,
String platformFilter,
String[] executionEnvironments,
GenericSpecification[] genericRequires,
GenericDescription[] genericCapabilities,
NativeCodeSpecification nativeCode)
Creates a bundle description from the given parameters.
Creates a bundle description that is a copy of the given description.
Returns a bundle description based on the information in the supplied manifest dictionary.
StateObjectFactory.StateObjectFactoryProxy.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)
StateObjectFactory.StateObjectFactoryProxy.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,
NativeCodeSpecification nativeCode)
StateObjectFactory.StateObjectFactoryProxy.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)
StateObjectFactory.StateObjectFactoryProxy.createBundleDescription(long id,
String symbolicName,
Version version,
String location,
BundleSpecification[] required,
HostSpecification host,
ImportPackageSpecification[] imports,
ExportPackageDescription[] exports,
String platformFilter,
String[] executionEnvironments,
GenericSpecification[] genericRequires,
GenericDescription[] genericCapabilities,
NativeCodeSpecification nativeCode)
Returns the BundleDescription that this bundle delta is for.
Returns the bundle which is disabled
Returns the bundle which this ResolverError is for
Returns the bundle descriptor for the bundle with the given id.
Returns the bundle descriptor for the bundle with the given name and
version.
Returns the bundle that declares this constraint.
Returns the bundle descriptor for the bundle with the given location
identifier. null is returned if no such bundle is found in this state.
Returns descriptions for all bundles known to this state.
Returns all bundle descriptions with the given bundle symbolic name.
gets the capability host.
Returns all bundles in the state depending on the given bundles.
Returns all bundles which depend on this bundle.
Returns an array of BundleDescriptions for the bundles that are disabled
in the system.
Returns the exporter of this package.
Returns all fragments known to this bundle (regardless resolution status).
Returns the list of host BundleDescriptions that satisfy this HostSpecification
Returns all the prerequisite bundles in the state for the given bundles.
Returns descriptions for all bundles in a removal pending state.
Gets the requirement host.
Returns descriptions for all bundles currently resolved in this state.
Returns all the bundle descriptions that satisfy all the require bundles for this bundle.
Returns the bundle which supplies this base description
Removes a bundle description with the given bundle id.
boolean
Adds the given bundle to this state.
void
Adds the specified dynamic imports to the specified importingBundle.
void
Adds a new ResolverError
for the specified bundle.
void
Notifies the resolver a bundle has been added to the state.
void
Notifies the resolver a bundle has been removed from the state.
void
Notifies the resolver a bundle has been updated in the state.
Creates a bundle description that is a copy of the given description.
Used by the Resolver to dynamically create ExportPackageDescription objects
during the resolution process.
Creates a generic description from the given parameters
Creates an import package specification from the given parameters.
int
Returns the access code that the specified BundleDescription
has to the
specified ExportPackageDescription
.
Returns all bundles in the state depending on the given bundles.
Returns the disabled info for the specified bundle with the specified policy name.
Returns an array of disabled info for the specified bundle.
Returns all the prerequisite bundles in the state for the given bundles.
Returns all ResolverError
s for the given bundle
Returns all unsatisfied constraints in the given bundle.
Returns all unsatisfied constraints in the given bundles that have no possible supplier.
Returns a list of all packages that the specified bundle has access to which are
exported by other bundles.
Returns a list of all packages that the specified bundle has access to which are
exported by other bundles.
Attempts to find an ExportPackageDescription that will satisfy a dynamic import
for the specified requestedPackage for the specified importingBundle.
boolean
Removes the given bundle description.
void
Sets the given removal pending bundle to removal complete for this state.
void
Removes all ResolverError
s for the specified bundle.
void
Resolves the state associated with this resolver and returns an array of
bundle deltas describing the changes..
Resolves the constraints contained in this state using the resolver
currently associated with the state in an incremental, "least-perturbing"
mode, and returns a delta describing the changes in resolved states and
dependencies in the state.
Resolves the constraints contained in this state using the resolver
currently associated with the state in an incremental, "least-perturbing"
mode, and returns a delta describing the changes in resolved states and
dependencies in the state.
void
void
void
State.resolveBundle(BundleDescription bundle,
boolean status,
BundleDescription[] hosts,
ExportPackageDescription[] selectedExports,
ExportPackageDescription[] substitutedExports,
GenericDescription[] selectedCapabilities,
BundleDescription[] resolvedRequires,
ExportPackageDescription[] resolvedImports,
GenericDescription[] resolvedCapabilities,
Map<String,List<StateWire>> resolvedWires)
Sets whether or not the given bundle is selected in this state.
Attempts to find an ExportPackageDescription that will satisfy a dynamic import
for the specified requestedPackage for the specified importingBundle.
Sorts the given array of resolved bundles in pre-requisite order.
boolean
Updates an existing bundle description with the given description.
StateObjectFactory.createBundleDescription(long, String, Version, String, BundleSpecification[], HostSpecification, ImportPackageSpecification[], ExportPackageDescription[], boolean, boolean, boolean, String, String[], GenericSpecification[], GenericDescription[])