You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by gp...@apache.org on 2012/04/11 19:20:06 UTC

git commit: DELTASPIKE-158 intermediate workaround

Updated Branches:
  refs/heads/master 368611e8d -> 2820780c5


DELTASPIKE-158 intermediate workaround


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

Branch: refs/heads/master
Commit: 2820780c5de6f7122e52ea73c2be8c3416ffacdd
Parents: 368611e
Author: gpetracek <gp...@apache.org>
Authored: Wed Apr 11 19:17:31 2012 +0200
Committer: gpetracek <gp...@apache.org>
Committed: Wed Apr 11 19:17:31 2012 +0200

----------------------------------------------------------------------
 .../control/HandlerMethodStorageProducer.java      |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/2820780c/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/exception/control/HandlerMethodStorageProducer.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/exception/control/HandlerMethodStorageProducer.java b/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/exception/control/HandlerMethodStorageProducer.java
index 8ed1fe2..6ff9ef4 100644
--- a/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/exception/control/HandlerMethodStorageProducer.java
+++ b/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/exception/control/HandlerMethodStorageProducer.java
@@ -18,6 +18,7 @@
  */
 package org.apache.deltaspike.core.impl.exception.control;
 
+import org.apache.deltaspike.core.api.provider.BeanProvider;
 import org.apache.deltaspike.core.impl.exception.control.extension.CatchExtension;
 
 import javax.enterprise.context.ApplicationScoped;
@@ -29,8 +30,10 @@ public class HandlerMethodStorageProducer
 {
     @Produces
     @ApplicationScoped
-    protected HandlerMethodStorage createHandlerMethodStorage(CatchExtension catchExtension)
+    protected HandlerMethodStorage createHandlerMethodStorage()
     {
+        //X TODO change it back to parameter injection after fixing the test-setup for ExcludeIntegrationTest
+        CatchExtension catchExtension = BeanProvider.getContextualReference(CatchExtension.class);
         return new HandlerMethodStorageImpl(catchExtension.getAllExceptionHandlers());
     }
 }