sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r1239577 - /sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/log/RequestLoggerFilter.java
Date Thu, 02 Feb 2012 12:28:28 GMT
Author: fmeschbe
Date: Thu Feb  2 12:28:28 2012
New Revision: 1239577

URL: http://svn.apache.org/viewvc?rev=1239577&view=rev
Log:
SLING-2389 Higher ranking for the request logger filter

Modified:
    sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/log/RequestLoggerFilter.java

Modified: sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/log/RequestLoggerFilter.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/log/RequestLoggerFilter.java?rev=1239577&r1=1239576&r2=1239577&view=diff
==============================================================================
--- sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/log/RequestLoggerFilter.java
(original)
+++ sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/log/RequestLoggerFilter.java
Thu Feb  2 12:28:28 2012
@@ -19,6 +19,7 @@
 package org.apache.sling.engine.impl.log;
 
 import java.io.IOException;
+
 import javax.servlet.Filter;
 import javax.servlet.FilterChain;
 import javax.servlet.FilterConfig;
@@ -36,20 +37,22 @@ import org.apache.felix.scr.annotations.
 import org.apache.felix.scr.annotations.ReferenceCardinality;
 import org.apache.felix.scr.annotations.ReferencePolicy;
 import org.apache.felix.scr.annotations.Service;
+import org.osgi.framework.Constants;
 import org.slf4j.LoggerFactory;
 
 @Component(immediate = true, policy = ConfigurationPolicy.IGNORE)
-@Properties({
-    @Property(name = "service.description", value = "Request Logger Filter"),
-    @Property(name = "service.vendor", value = "The Apache Software Foundation")
-})
 @Service(value = Filter.class)
 @Reference(
         name = "RequestLoggerService",
         referenceInterface = RequestLoggerService.class,
         cardinality = ReferenceCardinality.MANDATORY_MULTIPLE,
         policy = ReferencePolicy.DYNAMIC)
-@Property(name = "pattern", value = "/.*")
+@Properties({
+    @Property(name = "pattern", value = "/.*"),
+    @Property(name = Constants.SERVICE_RANKING, intValue = 0x8000),
+    @Property(name = "service.description", value = "Request Logger Filter"),
+    @Property(name = "service.vendor", value = "The Apache Software Foundation")
+})
 public final class RequestLoggerFilter implements Filter {
 
     private static final RequestLoggerService[] NONE = new RequestLoggerService[0];



Mime
View raw message