[jboss-cvs] jboss-seam/src/main/org/jboss/seam/contexts ...
Gavin King
gavin.king at jboss.com
Wed Mar 7 00:20:40 EST 2007
User: gavin
Date: 07/03/07 00:20:40
Modified: src/main/org/jboss/seam/contexts Lifecycle.java
Log:
hot deployment for JavaBean components
Revision Changes Path
1.84 +10 -1 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.83
retrieving revision 1.84
diff -u -b -r1.83 -r1.84
--- Lifecycle.java 17 Feb 2007 17:16:29 -0000 1.83
+++ Lifecycle.java 7 Mar 2007 05:20:40 -0000 1.84
@@ -28,7 +28,7 @@
/**
* @author Gavin King
* @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
- * @version $Revision: 1.83 $
+ * @version $Revision: 1.84 $
*/
public class Lifecycle
{
@@ -112,6 +112,14 @@
Contexts.conversationContext.set( new MapContext(ScopeType.CONVERSATION) );
}
+ public static void beginReinitialization(ServletContext servletContext, HttpSession session)
+ {
+ Contexts.applicationContext.set( new WebApplicationContext(servletContext) );
+ Contexts.eventContext.set( new MapContext(ScopeType.EVENT) );
+ Contexts.sessionContext.set( new WebSessionContext( ContextAdaptor.getSession(session) ) );
+ Contexts.conversationContext.set( new MapContext(ScopeType.CONVERSATION) );
+ }
+
public static void beginExceptionRecovery(ExternalContext externalContext)
{
Contexts.applicationContext.set( new FacesApplicationContext(externalContext) );
@@ -143,6 +151,7 @@
Contexts.conversationContext.set(null);
Contexts.destroy( Contexts.getEventContext() );
Contexts.eventContext.set(null);
+ Contexts.sessionContext.set(null);
Contexts.applicationContext.set(null);
}
More information about the jboss-cvs-commits
mailing list