struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [2/2] git commit: WW-4215 Allows constructor injection
Date Wed, 09 Jul 2014 19:17:11 GMT
WW-4215 Allows constructor injection


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

Branch: refs/heads/develop
Commit: ecab1b2b89ef8fe9c7174565e5193103ca98d9aa
Parents: 29bb41d
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Wed Jul 9 21:16:38 2014 +0200
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Wed Jul 9 21:16:38 2014 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/struts2/cdi/CdiObjectFactory.java  | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/ecab1b2b/plugins/cdi/src/main/java/org/apache/struts2/cdi/CdiObjectFactory.java
----------------------------------------------------------------------
diff --git a/plugins/cdi/src/main/java/org/apache/struts2/cdi/CdiObjectFactory.java b/plugins/cdi/src/main/java/org/apache/struts2/cdi/CdiObjectFactory.java
index 22c81d8..13c4965 100644
--- a/plugins/cdi/src/main/java/org/apache/struts2/cdi/CdiObjectFactory.java
+++ b/plugins/cdi/src/main/java/org/apache/struts2/cdi/CdiObjectFactory.java
@@ -198,4 +198,13 @@ public class CdiObjectFactory extends ObjectFactory {
     protected CreationalContext buildNonContextualCreationalContext(BeanManager beanManager)
{
         return beanManager != null ? beanManager.createCreationalContext(null) : null;
     }
+
+    /**
+     * Allow constructor injection
+     */
+    @Override
+    public boolean isNoArgConstructorRequired() {
+        return false;
+    }
+
 }


Mime
View raw message