|
OSGi™ Enterprise Release 5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Resolver
A resolver service resolves the specified resources in the context supplied by the caller.
Method Summary | |
---|---|
java.util.Map<Resource,java.util.List<Wire>> |
resolve(ResolveContext context)
Resolve the specified resolve context and return any new resources and wires to the caller. |
Method Detail |
---|
java.util.Map<Resource,java.util.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.
|
OSGi™ Enterprise Release 5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |