geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
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 GMT
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;



Mime
View raw message