deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject [2/7] git commit: fix old TODO and use field injection of Extension.
Date Sun, 23 Jun 2013 21:09:37 GMT
fix old TODO and use field injection of Extension.


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

Branch: refs/heads/master
Commit: bba004602c091dbb5c1da4b7a1d05a0ef4e55c42
Parents: 01b8745
Author: Mark Struberg <struberg@apache.org>
Authored: Sun Jun 23 17:39:47 2013 +0200
Committer: Mark Struberg <struberg@apache.org>
Committed: Sun Jun 23 17:39:47 2013 +0200

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


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/bba00460/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 4b1ea0f..2f57435 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,23 +18,22 @@
  */
 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.ExceptionControlExtension;
 
 import javax.enterprise.context.ApplicationScoped;
 import javax.enterprise.inject.Produces;
+import javax.inject.Inject;
 
 @ApplicationScoped
 public class HandlerMethodStorageProducer
 {
+    @Inject
+    private ExceptionControlExtension exceptionControlExtension;
+
     @Produces
     @ApplicationScoped
     protected HandlerMethodStorage createHandlerMethodStorage()
     {
-        //X TODO change it back to parameter injection after fixing the test-setup for ExcludeIntegrationTest
-        ExceptionControlExtension exceptionControlExtension =
-                BeanProvider.getContextualReference(ExceptionControlExtension.class);
-
         return new HandlerMethodStorageImpl(exceptionControlExtension.getAllExceptionHandlers());
     }
 }


Mime
View raw message