Revision: 1164
Author: ge0ffrey
Date: 2006-05-17 07:31:56 -0700 (Wed, 17 May 2006)
ViewCVS: http://svn.sourceforge.net/spring-rich-c/?rev=1164&view=rev
Log Message:
-----------
typo's and configure() method
Modified Paths:
--------------
trunk/spring-richclient/src/site/apt/user/upgrading.apt
Modified: trunk/spring-richclient/src/site/apt/user/upgrading.apt
===================================================================
--- trunk/spring-richclient/src/site/apt/user/upgrading.apt 2006-05-17
07:48:37 UTC (rev 1163)
+++ trunk/spring-richclient/src/site/apt/user/upgrading.apt 2006-05-17
14:31:56 UTC (rev 1164)
@@ -16,7 +16,7 @@
* Major Refactoring of application services configuration
A major refactoring of the way that application services (like
ImageSource, RulesSource, etc.)
- are handld/located was introduced in version 0.2.0. This change is
<<NOT>> backward
+ are handled/located was introduced in version 0.2.0. This change is
<<NOT>> backward
compatible and it requires changes to both the application context XML
file and to
source code that used the ApplicationServices class.
@@ -34,13 +34,13 @@
<property name="applicationServices" ref="applicationServices"/>
</bean>
- <bean id="applicationServices" singleton="true"
-
class="org.springframework.richclient.application.support.DefaultApplicationServices">
- <property name="imageSource" ref="imageSource"/>
- <property name="rulesSource" ref="rulesSource"/>
- <property name="formComponentInterceptorFactory"
ref="formComponentInterceptorFactory"/>
- <property name="applicationObjectConfigurerBeanId"><idref
bean="applicationObjectConfigurer"/></property>
- </bean>
+ <bean id="applicationServices" singleton="true"
+
class="org.springframework.richclient.application.support.DefaultApplicationServices">
+ <property name="imageSource" ref="imageSource"/>
+ <property name="rulesSource" ref="rulesSource"/>
+ <property name="formComponentInterceptorFactory"
ref="formComponentInterceptorFactory"/>
+ <property name="applicationObjectConfigurerBeanId"><idref
bean="applicationObjectConfigurer"/></property>
+ </bean>
+---
Note that the <<<DefaultApplicationServices>>> implementation provides
setter methods
@@ -59,8 +59,8 @@
+---
<bean id="iconSource"
- class="org.springframework.richclient.image.DefaultIconSource">
- <constructor-arg index="0" ref="imageSource"/>
+ class="org.springframework.richclient.image.DefaultIconSource">
+ <constructor-arg index="0" ref="imageSource"/>
</bean>
+---
@@ -145,6 +145,18 @@
}
+---
++--
+ Application.instance().getServices().configure(command)
++--
+
+ should now be
+
++--
+ CommandConfigurer commandConfigurer = (CommandConfigurer)
ApplicationServicesLocator.services()
+ .getService(CommandConfigurer.class);
+ commandConfigurer.configure(command);
++--
+
In order to support simple programmatic use of the
<<<ApplicationServices>>>, a new
<<<StaticApplicationServices>>> class has been provided. It has a simple
<<<registerService(Object service, Class serviceInterface)>>> method for
registering
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
spring-rich-c-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs