@ProviderType public interface Resolver
Map<Resource,List<Wire>> resolve(ResolveContext context) throws ResolutionException
The resolver considers two groups of resources:
mandatory group
must be
resolved. A failure to satisfy any mandatory requirement for these
resources will result in throwing a ResolutionException
optional group
may be
resolved. A failure to satisfy a mandatory requirement for a resource in
this group will not fail the overall resolution but no resources or wires
will be returned for that resource.
The resolve method returns the delta between the start state defined by
ResolveContext.getWirings()
and the end resolved state. That is,
only new resources and wires are included.
The behavior of the resolver is not defined if the specified resolve context supplies inconsistent information.
context
- The resolve context for the resolve operation. Must not be
null
.ResolutionException
- If the resolution cannot be satisfied.Copyright © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0