Knopflerfish OSGi 5.2.0

org.osgi.service.repository
Interface Repository


public interface Repository

A repository service that contains resources.

Repositories may be registered as services and may be used as by a resolve context during resolver operations.

Repositories registered as services may be filtered using standard service properties.

Author:
$Id: 0ce322be0d7242d30e47b7f972057d90e9b57c5e $
ThreadSafe
Consumers of this API must not implement this interface

Field Summary
static java.lang.String URL
          Service property to provide URLs related to this repository.
 
Method Summary
 java.util.Map<Requirement,java.util.Collection<Capability>> findProviders(java.util.Collection<? extends Requirement> requirements)
          Find the capabilities that match the specified requirements.
 

Field Detail

URL

static final java.lang.String URL
Service property to provide URLs related to this repository.

The value of this property must be of type String, String[], or Collection<String>.

See Also:
Constant Field Values
Method Detail

findProviders

java.util.Map<Requirement,java.util.Collection<Capability>> findProviders(java.util.Collection<? extends Requirement> requirements)
Find the capabilities that match the specified requirements.

Parameters:
requirements - The requirements for which matching capabilities should be returned. Must not be null.
Returns:
A map of matching capabilities for the specified requirements. Each specified requirement must appear as a key in the map. If there are no matching capabilities for a specified requirement, then the value in the map for the specified requirement must be an empty collection. The returned map is the property of the caller and can be modified by the caller.

Knopflerfish OSGi 5.2.0