| Constructor and Description |
|---|
AbstractResolver() |
| Modifier and Type | Method and Description |
|---|---|
XResolveContext |
createResolveContext(XEnvironment env,
Collection<? extends org.osgi.resource.Resource> mandatory,
Collection<? extends org.osgi.resource.Resource> optional) |
Map<org.osgi.resource.Resource,List<org.osgi.resource.Wire>> |
resolve(ResolveContext resolveContext)
Resolve the specified resolve context and return any new resources and
wires to the caller.
|
Map<org.osgi.resource.Resource,List<org.osgi.resource.Wire>> |
resolveAndApply(XResolveContext context) |
public XResolveContext createResolveContext(XEnvironment env, Collection<? extends org.osgi.resource.Resource> mandatory, Collection<? extends org.osgi.resource.Resource> optional)
createResolveContext in interface XResolverpublic Map<org.osgi.resource.Resource,List<org.osgi.resource.Wire>> resolve(ResolveContext resolveContext) throws ResolutionException
ResolverThe 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 ResolutionExceptionoptional 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 ResolverresolveContext - The resolve context for the resolve operation. Must not be
null.ResolutionException - If the resolution cannot be satisfied.public Map<org.osgi.resource.Resource,List<org.osgi.resource.Wire>> resolveAndApply(XResolveContext context) throws ResolutionException
resolveAndApply in interface XResolverResolutionExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.