You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/10/18 23:25:39 UTC
[sling-org-apache-sling-startupfilter] 04/21: SLING-2347 - set
filter.order so that it runs first
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-startupfilter.git
commit cddef7a3d9c0c31f09a45d9068ed597c6fbeba8b
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Fri Jan 6 22:17:04 2012 +0000
SLING-2347 - set filter.order so that it runs first
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1228464 13f79535-47bb-0310-9956-ffa450edef68
---
.../java/org/apache/sling/startupfilter/impl/StartupFilterImpl.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/sling/startupfilter/impl/StartupFilterImpl.java b/src/main/java/org/apache/sling/startupfilter/impl/StartupFilterImpl.java
index 66f4beb..149fc84 100644
--- a/src/main/java/org/apache/sling/startupfilter/impl/StartupFilterImpl.java
+++ b/src/main/java/org/apache/sling/startupfilter/impl/StartupFilterImpl.java
@@ -145,8 +145,9 @@ public class StartupFilterImpl implements StartupFilter, Filter {
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 implements StartupFilter, Filter {
public synchronized boolean isEnabled() {
return filterServiceRegistration != null;
}
-}
\ No newline at end of file
+}
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.