geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r701403 - /geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/resources/META-INF/spring/components.xml
Date Fri, 03 Oct 2008 15:15:35 GMT
Author: jdillon
Date: Fri Oct  3 08:15:35 2008
New Revision: 701403

URL: http://svn.apache.org/viewvc?rev=701403&view=rev
Log:
Make shell and history prototypes, latter is a hack

Modified:
    geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/resources/META-INF/spring/components.xml

Modified: geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/resources/META-INF/spring/components.xml
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/resources/META-INF/spring/components.xml?rev=701403&r1=701402&r2=701403&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/resources/META-INF/spring/components.xml
(original)
+++ geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/resources/META-INF/spring/components.xml
Fri Oct  3 08:15:35 2008
@@ -37,15 +37,13 @@
 
     <bean id="commandLineExecutor" class="org.apache.geronimo.gshell.wisdom.shell.CommandLineExecutorImpl"/>
 
-    <bean id="history" class="org.apache.geronimo.gshell.wisdom.shell.HistoryImpl"/>
+    <!--
+    FIXME: This should really not be prototype scoped, or it should be accessible for a Shell
instance.
+    -->
+    
+    <bean id="history" class="org.apache.geronimo.gshell.wisdom.shell.HistoryImpl" scope="prototype"/>
 
-    <bean id="commandNameCompleter" class="org.apache.geronimo.gshell.wisdom.completer.CommandNameCompleter"/>
-
-    <bean id="aliasNameCompleter" class="org.apache.geronimo.gshell.wisdom.completer.AliasNameCompleter"/>
-
-    <bean id="commandsCompleter" class="org.apache.geronimo.gshell.wisdom.completer.CommandsCompleter"/>
-
-    <bean id="shell" class="org.apache.geronimo.gshell.wisdom.shell.ShellImpl">
+    <bean id="shell" class="org.apache.geronimo.gshell.wisdom.shell.ShellImpl" scope="prototype">
         <property name="completers">
             <list>
                 <ref bean="commandsCompleter"/>
@@ -54,6 +52,12 @@
         </property>
     </bean>
 
+    <bean id="commandNameCompleter" class="org.apache.geronimo.gshell.wisdom.completer.CommandNameCompleter"/>
+
+    <bean id="aliasNameCompleter" class="org.apache.geronimo.gshell.wisdom.completer.AliasNameCompleter"/>
+
+    <bean id="commandsCompleter" class="org.apache.geronimo.gshell.wisdom.completer.CommandsCompleter"/>
+
     <bean id="pluginTemplate" class="org.apache.geronimo.gshell.wisdom.plugin.PluginImpl"
abstract="true">
         <property name="activationRules">
             <list>



Mime
View raw message