[jboss-cvs] jboss-seam/src/main/org/jboss/seam/contexts ...
Gavin King
gavin.king at jboss.com
Wed Nov 29 07:51:33 EST 2006
User: gavin
Date: 06/11/29 07:51:33
Modified: src/main/org/jboss/seam/contexts Lifecycle.java
Log:
delete obsolete code
Revision Changes Path
1.67 +2 -13 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.66
retrieving revision 1.67
diff -u -b -r1.66 -r1.67
--- Lifecycle.java 25 Nov 2006 02:56:06 -0000 1.66
+++ Lifecycle.java 29 Nov 2006 12:51:33 -0000 1.67
@@ -31,7 +31,7 @@
/**
* @author Gavin King
* @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
- * @version $Revision: 1.66 $
+ * @version $Revision: 1.67 $
*/
public class Lifecycle
{
@@ -58,12 +58,11 @@
public static void beginCall()
{
log.debug( ">>> Begin call" );
- ServletContext servletContext = getServletContext();
Contexts.eventContext.set( new MapContext(ScopeType.EVENT) );
Contexts.sessionContext.set( new MapContext(ScopeType.SESSION) );
Contexts.conversationContext.set( new MapContext(ScopeType.CONVERSATION) );
Contexts.businessProcessContext.set( new BusinessProcessContext() );
- Contexts.applicationContext.set( new WebApplicationContext(servletContext) );
+ Contexts.applicationContext.set( new WebApplicationContext( getServletContext() ) );
}
public static void endCall()
@@ -420,7 +419,6 @@
}
private static ThreadLocal<Boolean> destroying = new ThreadLocal<Boolean>();
- private static ThreadLocal<Boolean> exception = new ThreadLocal<Boolean>();
public static void startDestroying()
{
@@ -438,15 +436,6 @@
return value!=null && value.booleanValue();
}
- public static boolean isException() {
- Boolean value = exception.get();
- return value!=null && value.booleanValue();
- }
-
- public static void setException(boolean ex) {
- exception.set(ex);
- }
-
public static boolean isAttributeDirty(Object attribute)
{
return ( attribute instanceof Mutable && ( (Mutable) attribute ).clearDirty() ) ||
More information about the jboss-cvs-commits
mailing list