Return-Path: X-Original-To: apmail-struts-commits-archive@minotaur.apache.org Delivered-To: apmail-struts-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9574011320 for ; Wed, 9 Jul 2014 19:17:11 +0000 (UTC) Received: (qmail 68236 invoked by uid 500); 9 Jul 2014 19:17:11 -0000 Delivered-To: apmail-struts-commits-archive@struts.apache.org Received: (qmail 68068 invoked by uid 500); 9 Jul 2014 19:17:11 -0000 Mailing-List: contact commits-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list commits@struts.apache.org Received: (qmail 67908 invoked by uid 99); 9 Jul 2014 19:17:11 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 19:17:11 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 09F039496B8; Wed, 9 Jul 2014 19:17:10 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: lukaszlenart@apache.org To: commits@struts.apache.org Date: Wed, 09 Jul 2014 19:17:11 -0000 Message-Id: In-Reply-To: <4d8820b1168e48109b151becb02b7af6@git.apache.org> References: <4d8820b1168e48109b151becb02b7af6@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/2] git commit: WW-4215 Allows constructor injection 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 Authored: Wed Jul 9 21:16:38 2014 +0200 Committer: Lukasz Lenart 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; + } + }