public final class LoggingResolver extends ResolverImpl
Constructor and Description |
---|
LoggingResolver() |
Modifier and Type | Method and Description |
---|---|
Map<org.osgi.resource.Resource,List<org.osgi.resource.Wire>> |
resolve(ResolveContext context)
Resolve the specified resolve context and return any new resources and
wires to the caller.
|
resolve
public Map<org.osgi.resource.Resource,List<org.osgi.resource.Wire>> resolve(ResolveContext context) throws ResolutionException
Resolver
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.
resolve
in interface Resolver
resolve
in class ResolverImpl
context
- The resolve context for the resolve operation. Must not be
null
.ResolutionException
- If the resolution cannot be satisfied.Copyright © 2013 JBoss by Red Hat. All rights reserved.