danilobanjac commented on code in PR #12:
URL: 
https://github.com/apache/sling-org-apache-sling-distribution-api/pull/12#discussion_r1539137124


##########
src/main/java/org/apache/sling/distribution/DistributionPathSupplier.java:
##########
@@ -0,0 +1,41 @@
+/*
+ * 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.distribution;
+
+import java.util.List;
+import java.util.Set;
+
+/**
+ * Defines the contract for supplying a set of distribution paths. This 
interface
+ * allows for the retrieval of distribution paths based on a list of initial 
paths,
+ * which can be used to configure or initialize the supplier.
+ */
+public interface DistributionPathSupplier {
+    /**
+     * Retrieves a set of distribution paths based on the provided initial 
paths.
+     * This method allows for dynamic adjustment of the paths based on initial
+     * configuration or other criteria.
+     *
+     * @param initialPaths a list of strings representing initial paths that 
might influence
+     *                     the retrieval or generation of the distribution 
paths.
+     * @return a set of strings representing the distribution paths.
+     * @throws PathRetrievalException if there is an error in retrieving the 
distribution paths.
+     */
+    Set<String> getDistributionPaths(List<String> initialPaths) throws 
PathRetrievalException;

Review Comment:
   Should I make this `Map<String, Object> properties` or something like that, 
make it more dynamic, this contract is pretty explicit?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to