public abstract class BaseRepository extends java.lang.Object implements Repository
URL| Constructor and Description |
|---|
BaseRepository() |
| Modifier and Type | Method and Description |
|---|---|
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindProviderspublic Promise<java.util.Collection<Resource>> findProviders(RequirementExpression expression)
RepositoryfindProviders in interface Repositoryexpression - 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.public ExpressionCombiner getExpressionCombiner()
Repositoryand, or and
not operators.getExpressionCombiner in interface RepositoryExpressionCombiner.public RequirementBuilder newRequirementBuilder(java.lang.String namespace)
RepositoryRequirementBuilder 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();
newRequirementBuilder in interface Repositorynamespace - The namespace for the requirement to be created.Copyright (c) aQute SARL (2000, 2017) and others. All Rights Reserved.