portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/engine SpringEngine.java
Date Thu, 12 May 2005 21:00:45 GMT
weaver      2005/05/12 14:00:45

  Modified:    portal/src/java/org/apache/jetspeed/engine SpringEngine.java
  Log:
  Now adds the Spring ApplicationContext to the ServletContext
  
  Revision  Changes    Path
  1.8       +4 -2      jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/engine/SpringEngine.java
  
  Index: SpringEngine.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/engine/SpringEngine.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- SpringEngine.java	2 Aug 2004 20:32:49 -0000	1.7
  +++ SpringEngine.java	12 May 2005 21:00:45 -0000	1.8
  @@ -27,6 +27,7 @@
   import org.apache.jetspeed.components.ComponentManager;
   import org.apache.jetspeed.components.SpringComponentManager;
   import org.apache.jetspeed.components.factorybeans.ServletConfigFactoryBean;
  +import org.springframework.web.context.WebApplicationContext;
   
   /**
    * <p>
  @@ -105,7 +106,8 @@
               }          
           }
           
  -        ComponentManager cm = new SpringComponentManager(configs, null);
  +        SpringComponentManager cm = new SpringComponentManager(configs, null);
  +        servletConfig.getServletContext().setAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE,
cm.getApplicationContext());
           
           return cm;
       }    
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message