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 |
|---|---|
| public static final String | URL
Service property to provide URLs related to this repository. |
| Modifier and Type | Method and Description |
|---|---|
| public Map | 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. The returned map may be lazily populated, so callingsize() may result in a long
running operation.The requirements for which matching capabilities
should be returned. Must not be requirements)null.Find the capabilities that match the specified requirements. |
| public Promise | Returns: A promise to a collection of matchingResources. 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.The expression)RequirementExpression for which matching
capabilities should be returned. Must not be null.Find the resources that match the specified requirement expression. |
| public ExpressionCombiner | |
| public RequirementBuilder | Returns: A new requirement builder for a requirement in the specified namespace.The namespace for the requirement to be created. namespace)Return a new |
| URL | back to summary |
|---|---|
| public static final String URL Service property to provide URLs related to this repository.
The value of this property must be of type | |
| findProviders | back to summary |
|---|---|
| public Map Find the capabilities that match the specified requirements.
| |
| findProviders | back to summary |
|---|---|
| public Promise Find the resources that match the specified requirement expression.
| |
| getExpressionCombiner | back to summary |
|---|---|
| public ExpressionCombiner getExpressionCombiner() Return an expression combiner. An expression combiner can be used to
combine multiple requirement expressions into more complex requirement
expressions using
| |
| newRequirementBuilder | back to summary |
|---|---|
| public RequirementBuilder newRequirementBuilder(String namespace) Return a new For example:
Requirement myReq = repository.newRequirementBuilder("org.foo.ns1").
addDirective("filter", "(org.foo.ns1=val1)").
addDirective("cardinality", "multiple").build();
| |