You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by da...@apache.org on 2018/07/09 08:56:41 UTC

[sling-org-apache-sling-feature] 01/01: Add Features service API

This is an automated email from the ASF dual-hosted git repository.

davidb pushed a commit to branch features-service
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature.git

commit b5985f89bf9adcdca6c6a3a88b99b5f98836c1e9
Author: David Bosschaert <bo...@adobe.com>
AuthorDate: Mon Jul 9 09:56:09 2018 +0100

    Add Features service API
---
 .../org/apache/sling/feature/service/Features.java | 28 ++++++++++++++++++++++
 .../apache/sling/feature/service/package-info.java | 23 ++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/src/main/java/org/apache/sling/feature/service/Features.java b/src/main/java/org/apache/sling/feature/service/Features.java
new file mode 100644
index 0000000..d85cf51
--- /dev/null
+++ b/src/main/java/org/apache/sling/feature/service/Features.java
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.sling.feature.service;
+
+import org.apache.sling.feature.Feature;
+
+import java.util.Collection;
+
+public interface Features {
+    Collection<Feature> listFeatures();
+    Feature getFeatureForBundle(long bundleId);
+}
diff --git a/src/main/java/org/apache/sling/feature/service/package-info.java b/src/main/java/org/apache/sling/feature/service/package-info.java
new file mode 100644
index 0000000..5fbfdc0
--- /dev/null
+++ b/src/main/java/org/apache/sling/feature/service/package-info.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+@org.osgi.annotation.versioning.Version("0.1.0")
+package org.apache.sling.feature.service;
+
+