incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1228464 - /sling/trunk/contrib/extensions/startup-filter/src/main/java/org/apache/sling/startupfilter/impl/StartupFilterImpl.java
Date Fri, 06 Jan 2012 22:17:04 GMT
Author: bdelacretaz
Date: Fri Jan  6 22:17:04 2012
New Revision: 1228464

URL: http://svn.apache.org/viewvc?rev=1228464&view=rev
Log:
SLING-2347 - set filter.order so that it runs first

Modified:
    sling/trunk/contrib/extensions/startup-filter/src/main/java/org/apache/sling/startupfilter/impl/StartupFilterImpl.java

Modified: sling/trunk/contrib/extensions/startup-filter/src/main/java/org/apache/sling/startupfilter/impl/StartupFilterImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/startup-filter/src/main/java/org/apache/sling/startupfilter/impl/StartupFilterImpl.java?rev=1228464&r1=1228463&r2=1228464&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/startup-filter/src/main/java/org/apache/sling/startupfilter/impl/StartupFilterImpl.java
(original)
+++ sling/trunk/contrib/extensions/startup-filter/src/main/java/org/apache/sling/startupfilter/impl/StartupFilterImpl.java
Fri Jan  6 22:17:04 2012
@@ -145,8 +145,9 @@ public class StartupFilterImpl implement
     
     public synchronized void enable() {
         if(filterServiceRegistration == null) {
-            final Hashtable<String, String> params = new Hashtable<String, String>();
+            final Hashtable<String, Object> params = new Hashtable<String, Object>();
             params.put("filter.scope", "REQUEST");
+            params.put("filter.order", Integer.MIN_VALUE);
             filterServiceRegistration = bundleContext.registerService(Filter.class.getName(),
this, params);
             log.info("Registered {} as a Filter service", this);
         }
@@ -163,4 +164,4 @@ public class StartupFilterImpl implement
     public synchronized boolean isEnabled() {
         return filterServiceRegistration != null;
     }
-}
\ No newline at end of file
+}



Mime
View raw message