[jboss-cvs] jboss-seam/src/main/org/jboss/seam/contexts ...

Gavin King gavin.king at jboss.com
Mon Sep 18 18:40:53 EDT 2006


  User: gavin   
  Date: 06/09/18 18:40:53

  Modified:    src/main/org/jboss/seam/contexts  Lifecycle.java
  Log:
  fixed JBSEAM-337
  
  Revision  Changes    Path
  1.49      +6 -4      jboss-seam/src/main/org/jboss/seam/contexts/Lifecycle.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Lifecycle.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/contexts/Lifecycle.java,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -b -r1.48 -r1.49
  --- Lifecycle.java	31 Aug 2006 01:38:01 -0000	1.48
  +++ Lifecycle.java	18 Sep 2006 22:40:53 -0000	1.49
  @@ -27,7 +27,7 @@
   /**
    * @author Gavin King
    * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
  - * @version $Revision: 1.48 $
  + * @version $Revision: 1.49 $
    */
   public class Lifecycle
   {
  @@ -97,8 +97,8 @@
   
      public static void beginInitialization(ServletContext servletContext)
      {
  -      Context context = new WebApplicationContext(servletContext);
  -      Contexts.applicationContext.set(context);
  +      Contexts.applicationContext.set( new WebApplicationContext(servletContext) );
  +      Contexts.eventContext.set( new MapContext(ScopeType.EVENT) );
      }
   
      public static void endInitialization()
  @@ -118,6 +118,8 @@
       	   }
         }
   
  +      Contexts.destroy( Contexts.getEventContext() );
  +      Contexts.eventContext.set(null);
         Contexts.applicationContext.set(null);
      }
   
  
  
  



More information about the jboss-cvs-commits mailing list