deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject deltaspike git commit: DELTASPIKE-769 configurable priority
Date Sun, 16 Nov 2014 19:27:35 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master 444d3e7a9 -> 391558fd3


DELTASPIKE-769 configurable priority


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/391558fd
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/391558fd
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/391558fd

Branch: refs/heads/master
Commit: 391558fd372abb857ed601f6aee3599bc7e9e53d
Parents: 444d3e7
Author: gpetracek <gpetracek@apache.org>
Authored: Sun Nov 16 20:24:01 2014 +0100
Committer: gpetracek <gpetracek@apache.org>
Committed: Sun Nov 16 20:24:01 2014 +0100

----------------------------------------------------------------------
 .../core/impl/interceptor/GlobalInterceptorExtension.java       | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/391558fd/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/interceptor/GlobalInterceptorExtension.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/interceptor/GlobalInterceptorExtension.java
b/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/interceptor/GlobalInterceptorExtension.java
index 1e4e2eb..9cc2f7a 100644
--- a/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/interceptor/GlobalInterceptorExtension.java
+++ b/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/interceptor/GlobalInterceptorExtension.java
@@ -18,6 +18,7 @@
  */
 package org.apache.deltaspike.core.impl.interceptor;
 
+import org.apache.deltaspike.core.api.config.ConfigResolver;
 import org.apache.deltaspike.core.spi.activation.Deactivatable;
 import org.apache.deltaspike.core.util.ClassDeactivationUtils;
 import org.apache.deltaspike.core.util.ClassUtils;
@@ -57,7 +58,9 @@ public class GlobalInterceptorExtension implements Deactivatable, Extension
             ClassUtils.tryToLoadClassForName("javax.enterprise.inject.spi.AfterTypeDiscovery")
!= null)
         {
             Map<String, Object> defaultValueMap = new HashMap<String, Object>();
-            defaultValueMap.put("value", 0);
+            int priorityValue = Integer.parseInt(
+                ConfigResolver.getPropertyValue("deltaspike.interceptor.priority", "0"));
+            defaultValueMap.put("value", priorityValue);
             priorityAnnotationInstance = AnnotationInstanceProvider.of(priorityAnnotationClass,
defaultValueMap);
         }
     }


Mime
View raw message