|
Knopflerfish OSGi 6.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@ProviderType 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.
| 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. |
Promise<java.util.Collection<Resource>> |
findProviders(RequirementExpression expression)
Find the resources that match the specified requirement expression. |
ExpressionCombiner |
getExpressionCombiner()
Return an expression combiner. |
RequirementBuilder |
newRequirementBuilder(java.lang.String namespace)
Return a new RequirementBuilder which provides a convenient way
to create a requirement. |
| Field Detail |
|---|
static final java.lang.String URL
The value of this property must be of type String,
String[], or Collection<String>.
| Method Detail |
|---|
java.util.Map<Requirement,java.util.Collection<Capability>> findProviders(java.util.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<java.util.Collection<Resource>> findProviders(RequirementExpression expression)
expression - The RequirementExpression for which matching
capabilities should be returned. Must not be null.
Resources. 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(java.lang.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.
|
Knopflerfish OSGi 6.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||