deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject git commit: DELTASPIKE-480 minor improvement
Date Thu, 26 Dec 2013 14:33:23 GMT
Updated Branches:
  refs/heads/master 5e213acd2 -> 015ce76ed


DELTASPIKE-480 minor improvement


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

Branch: refs/heads/master
Commit: 015ce76ed51431f1634e8af5fd032daa1a6ae9e9
Parents: 5e213ac
Author: gpetracek <gpetracek@apache.org>
Authored: Thu Dec 26 15:28:14 2013 +0100
Committer: gpetracek <gpetracek@apache.org>
Committed: Thu Dec 26 15:32:48 2013 +0100

----------------------------------------------------------------------
 .../deltaspike/jsf/impl/config/view/ViewConfigValidator.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/015ce76e/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/config/view/ViewConfigValidator.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/config/view/ViewConfigValidator.java
b/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/config/view/ViewConfigValidator.java
index fb034e0..be91261 100644
--- a/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/config/view/ViewConfigValidator.java
+++ b/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/config/view/ViewConfigValidator.java
@@ -27,7 +27,6 @@ import org.apache.deltaspike.core.util.ExceptionUtils;
 
 import javax.servlet.ServletContextEvent;
 import javax.servlet.ServletContextListener;
-import java.net.MalformedURLException;
 
 public class ViewConfigValidator implements ServletContextListener, Deactivatable
 {
@@ -40,6 +39,7 @@ public class ViewConfigValidator implements ServletContextListener, Deactivatabl
         }
     }
 
+    //allows to re-use it in a custom listener (if this one is deactivated e.g. to change
the order)
     protected void checkViewConfig(ServletContextEvent sce)
     {
         ViewConfigResolver viewConfigResolver = BeanProvider.getContextualReference(ViewConfigResolver.class);
@@ -54,8 +54,9 @@ public class ViewConfigValidator implements ServletContextListener, Deactivatabl
                         "' is missing, but mapped by: " + configDescriptor.getConfigClass().getName());
                 }
             }
-            catch (MalformedURLException e)
+            catch (Exception e)
             {
+                e.printStackTrace(); //for easier analysis (in combination with several servers)
                 throw ExceptionUtils.throwAsRuntimeException(e);
             }
         }


Mime
View raw message