Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 15467 invoked from network); 11 Sep 2008 14:23:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Sep 2008 14:23:34 -0000 Received: (qmail 91484 invoked by uid 500); 11 Sep 2008 14:23:31 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 91441 invoked by uid 500); 11 Sep 2008 14:23:31 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 91432 invoked by uid 99); 11 Sep 2008 14:23:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2008 07:23:31 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2008 14:22:41 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 638952388970; Thu, 11 Sep 2008 07:23:13 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r694270 - /geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandResolverImpl.java Date: Thu, 11 Sep 2008 14:23:12 -0000 To: scm@geronimo.apache.org From: jdillon@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080911142313.638952388970@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jdillon Date: Thu Sep 11 07:23:08 2008 New Revision: 694270 URL: http://svn.apache.org/viewvc?rev=694270&view=rev Log: Wire up some missing components Modified: geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandResolverImpl.java Modified: geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandResolverImpl.java URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandResolverImpl.java?rev=694270&r1=694269&r2=694270&view=diff ============================================================================== --- geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandResolverImpl.java (original) +++ geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandResolverImpl.java Thu Sep 11 07:23:08 2008 @@ -35,6 +35,7 @@ import org.apache.geronimo.gshell.model.layout.Node; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; /** * The default {@link CommandResolver} component. @@ -46,20 +47,14 @@ { private final Logger log = LoggerFactory.getLogger(getClass()); + @Autowired private LayoutManager layoutManager; + @Autowired private CommandContainerFactory containerFactory; public CommandResolverImpl() {} - public CommandResolverImpl(final LayoutManager layoutManager, final CommandContainerFactory containerFactory) { - assert layoutManager != null; - assert containerFactory != null; - - this.layoutManager = layoutManager; - this.containerFactory = containerFactory; - } - public Command resolve(final Variables variables, final String path) throws CommandNotFoundException { assert variables != null; assert path != null;