FELIX-2110: The resolver should be able to resolve for some requirements in addition to resources
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@912353 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/org.osgi.service.obr/src/main/java/org/osgi/service/obr/RepositoryAdmin.java b/org.osgi.service.obr/src/main/java/org/osgi/service/obr/RepositoryAdmin.java
index 7468871..29fad00 100644
--- a/org.osgi.service.obr/src/main/java/org/osgi/service/obr/RepositoryAdmin.java
+++ b/org.osgi.service.obr/src/main/java/org/osgi/service/obr/RepositoryAdmin.java
@@ -23,6 +23,9 @@
import java.net.URL;
+import org.osgi.framework.Filter;
+import org.osgi.framework.InvalidSyntaxException;
+
/**
* Provides centralized access to the distributed repository.
*
@@ -75,7 +78,6 @@
/**
* Create a resolver.
*
- * @param resource
* @return
*/
Resolver resolver();
@@ -100,5 +102,22 @@
*/
Repository[] listRepositories();
- Resource getResource(String respositoryId);
+ Resource getResource(String repositoryId);
+
+ /**
+ * Create a simple requirement to be used for selection
+ * @param name
+ * @param filter
+ * @return
+ */
+ Requirement requirement(String name, String filter) throws InvalidSyntaxException;
+
+ /**
+ * Create an extender filter supporting the SUBSET, SUPERSET and other extensions
+ *
+ * @param filter the string filter
+ * @return
+ */
+ Filter filter(String filter) throws InvalidSyntaxException;
+
}
\ No newline at end of file