schaefa commented on a change in pull request #15: Feature/sling 7768: String 
Interpolation for ETC Map
URL: 
https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/15#discussion_r370217886
 
 

 ##########
 File path: 
src/main/java/org/apache/sling/resourceresolver/impl/mapping/StringInterpolationProviderConfiguration.java
 ##########
 @@ -0,0 +1,37 @@
+/*
+ * 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.resourceresolver.impl.mapping;
+
+import org.osgi.service.metatype.annotations.AttributeDefinition;
+import org.osgi.service.metatype.annotations.ObjectClassDefinition;
+
+@ObjectClassDefinition(
+    name = "Apache Sling String Interpolation Provider",
+    description = "Configures the String Interpolation Provider and the 
location of its key/value pairs"
+)
+public @interface StringInterpolationProviderConfiguration {
+
+    @AttributeDefinition(
+        name = "Placeholder Values",
+        description = "A list of key / value pairs separated by a equal (=) 
sign. " +
+            "The key is not permitted to contain a '=' sign and the first 
occurrence of '=' " +
+            "separates the key from the value. If no '=' is found the entire 
key / value pair " +
+            "is dropped.")
+    String[] placeHolderKeyValuePairs() default 
{"phv.default.host.name=localhost"};
 
 Review comment:
   That was here because I wanted to illustrate it. I am going to remove it.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to