@ProviderType public interface Repository
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.
Modifier and Type | Field and Description |
---|---|
static String |
URL
Service property to provide URLs related to this repository.
|
Modifier and Type | Method and Description |
---|---|
Map<Requirement,Collection<Capability>> |
findProviders(Collection<? extends Requirement> requirements)
Find the capabilities that match the specified requirements.
|
Promise<Collection<Resource>> |
findProviders(RequirementExpression expression)
Find the resources that match the specified requirement expression.
|
ExpressionCombiner |
getExpressionCombiner()
Return an expression combiner.
|
RequirementBuilder |
newRequirementBuilder(String namespace)
Return a new
RequirementBuilder which provides a convenient way
to create a requirement. |
static final String URL
The value of this property must be of type String
,
String[]
, or Collection<String>
.
Map<Requirement,Collection<Capability>> findProviders(Collection<? extends Requirement> requirements)
requirements
- The requirements for which matching capabilities
should be returned. Must not be null
.size()
may result in a long
running operation.Promise<Collection<Resource>> findProviders(RequirementExpression expression)
expression
- The RequirementExpression
for which matching
capabilities should be returned. Must not be null
.Resource
s. If there
are no matching resources, an empty collection is returned. The
returned collection is the property of the caller and can be
modified by the caller. The returned collection may be lazily
populated, so calling size()
may result in a long running
operation.ExpressionCombiner getExpressionCombiner()
and
, or
and
not
operators.ExpressionCombiner
.RequirementBuilder newRequirementBuilder(String namespace)
RequirementBuilder
which provides a convenient way
to create a requirement.
For example:
Requirement myReq = repository.newRequirementBuilder("org.foo.ns1"). addDirective("filter", "(org.foo.ns1=val1)"). addDirective("cardinality", "multiple").build();
namespace
- The namespace for the requirement to be created.Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0