Revision: 1495
          http://svn.sourceforge.net/spring-rich-c/?rev=1495&view=rev
Author:   jhoskens
Date:     2006-10-06 02:55:15 -0700 (Fri, 06 Oct 2006)

Log Message:
-----------
Spring 2.0 will pass the result of a factoryBean to all postProcessors,
so only register the commands (including results of factories) 
and let the factoryBean pass without extracting&registering the CommandGroup

Modified Paths:
--------------
    
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/command/support/DefaultCommandManager.java

Modified: 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/command/support/DefaultCommandManager.java
===================================================================
--- 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/command/support/DefaultCommandManager.java
     2006-10-06 08:15:20 UTC (rev 1494)
+++ 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/command/support/DefaultCommandManager.java
     2006-10-06 09:55:15 UTC (rev 1495)
@@ -215,11 +215,7 @@
     }
 
     public Object postProcessAfterInitialization(Object bean, String beanName) 
throws BeansException {
-        if (bean instanceof CommandGroupFactoryBean) {
-            CommandGroupFactoryBean factory = (CommandGroupFactoryBean)bean;
-            registerCommand(factory.getCommandGroup());
-        }
-        else if (bean instanceof AbstractCommand) {
+        if (bean instanceof AbstractCommand) {
             registerCommand((AbstractCommand)bean);
         }
         return bean;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
spring-rich-c-cvs mailing list
spring-rich-c-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs

Reply via email to