Bundles registering this service will be called by the framework during a
bundle resolver process to obtain a resolver hook
instance which will be used for the duration of a resolve process.
ResolverHook
| Modifier and Type | Method and Description |
|---|---|
| public ResolverHook | Returns: a resolver hook instance to be used for the duration of the resolve process. Anull value may be returned which
indicates this resolver hook factory abstains from the resolve
process.an unmodifiable collection of bundles which triggered the
resolve process. This collection may be empty if the collection of
trigger bundles cannot be determined. triggers)This method is called by the framework each time a resolve process begins
to obtain a |
| begin | back to summary |
|---|---|
| public ResolverHook begin(Collection<BundleRevision> triggers) This method is called by the framework each time a resolve process begins
to obtain a
The triggers represent the collection of bundles which triggered the
resolve process. This collection may be empty if the triggers cannot be
determined by the framework. In most cases the triggers can easily be
determined. Calling certain methods on resolveBundles is
called the collection of triggers must include all the current bundle
revisions for bundles passed to resolveBundles which are in the
INSTALLED state.
When
As described above, a resolve process is typically initiated as a result of calling API that causes the framework to attempt to resolve one or more bundles. The framework is free to start a resolve process at any time for reasons other than calls to framework API. For example, a resolve process may be used by the framework for diagnostic purposes and result in no bundles actually becoming resolved at the end of the process. Resolver hook implementations must be prepared for resolve processes that are initiated for other reasons besides calls to framework API.
| |