Revision: 1166
Author:   lstreepy
Date:     2006-05-17 08:07:22 -0700 (Wed, 17 May 2006)
ViewCVS:  http://svn.sourceforge.net/spring-rich-c/?rev=1166&view=rev

Log Message:
-----------
Add support for ApplicationContext as a service.  Calling getService( 
ApplicationContext.class )
will return the application context.

Modified Paths:
--------------
    
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/application/support/DefaultApplicationServices.java
Modified: 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/application/support/DefaultApplicationServices.java
===================================================================
--- 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/application/support/DefaultApplicationServices.java
    2006-05-17 14:49:43 UTC (rev 1165)
+++ 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/application/support/DefaultApplicationServices.java
    2006-05-17 15:07:22 UTC (rev 1166)
@@ -395,6 +395,12 @@
         Object build( DefaultApplicationServices applicationServices );
     }
 
+    protected static final ImplBuilder applicationContextImplBuilder = new 
ImplBuilder() {
+        public Object build( DefaultApplicationServices applicationServices ) {
+            return applicationServices.getApplicationContext();
+        }
+    };
+
     protected static final ImplBuilder componentFactoryImplBuilder = new 
ImplBuilder() {
         public Object build( DefaultApplicationServices applicationServices ) {
             logger.info("Creating default service impl: ComponentFactory");


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

Reply via email to