sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@apache.org
Subject [sling-org-apache-sling-jcr-davex] 06/08: SLING-4919 : Require configuration for webdav related services
Date Tue, 07 Nov 2017 09:48:13 GMT
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.davex-1.3.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-davex.git

commit c2bdf749dfd1081dfab6bf7b3e97fd9f3e14552d
Author: Carsten Ziegeler <cziegeler@apache.org>
AuthorDate: Thu Jul 30 15:31:04 2015 +0000

    SLING-4919 : Require configuration for webdav related services
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/davex@1693441 13f79535-47bb-0310-9956-ffa450edef68
---
 .../org/apache/sling/jcr/davex/impl/servlets/SlingDavExServlet.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/jcr/davex/impl/servlets/SlingDavExServlet.java
b/src/main/java/org/apache/sling/jcr/davex/impl/servlets/SlingDavExServlet.java
index ef3319a..a215bea 100644
--- a/src/main/java/org/apache/sling/jcr/davex/impl/servlets/SlingDavExServlet.java
+++ b/src/main/java/org/apache/sling/jcr/davex/impl/servlets/SlingDavExServlet.java
@@ -30,6 +30,7 @@ import javax.servlet.http.HttpServletRequest;
 
 import org.apache.felix.scr.annotations.Activate;
 import org.apache.felix.scr.annotations.Component;
+import org.apache.felix.scr.annotations.ConfigurationPolicy;
 import org.apache.felix.scr.annotations.Deactivate;
 import org.apache.felix.scr.annotations.Properties;
 import org.apache.felix.scr.annotations.Property;
@@ -54,7 +55,9 @@ import org.slf4j.LoggerFactory;
  *
  */
 @SuppressWarnings("serial")
-@Component(metatype = true, label = "%dav.name", description = "%dav.description")
+@Component(metatype = true, label = "%dav.name",
+           description = "%dav.description",
+           policy = ConfigurationPolicy.REQUIRE)
 @Properties({ @Property(name = Constants.SERVICE_DESCRIPTION, value = "Sling JcrRemoting
Servlet"),
     @Property(name = Constants.SERVICE_VENDOR, value = "The Apache Software Foundation")
})
 public class SlingDavExServlet extends JcrRemotingServlet {

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <commits@sling.apache.org>.

Mime
View raw message