Knopflerfish OSGi 5.2.0

org.osgi.service.resolver
Interface Resolver


public interface Resolver

A resolver service resolves the specified resources in the context supplied by the caller.

Author:
$Id: 809049a3954e50f9abbfca24fa4fda0d77d4f5b3 $
ThreadSafe
Consumers of this API must not implement this interface

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

resolve

java.util.Map<Resource,java.util.List<Wire>> resolve(ResolveContext context)
                                                     throws ResolutionException
Resolve the specified resolve context and return any new resources and wires to the caller.

The resolver considers two groups of resources:

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.

Parameters:
context - The resolve context for the resolve operation. Must not be null.
Returns:
The new resources and wires required to satisfy the specified resolve context. The returned map is the property of the caller and can be modified by the caller.
Throws:
ResolutionException - If the resolution cannot be satisfied.

Knopflerfish OSGi 5.2.0