OSGi™ Enterprise
Release 5

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.

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.

OSGi™ Enterprise
Release 5

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