OSGi™ Enterprise
Release 5

org.osgi.service.resolver
Interface Resolver


public interface Resolver

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

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.

OSGi™ Enterprise
Release 5

Copyright © OSGi Alliance (2000, 2012). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0