Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@310 1c488680-804c-0410-94cd-c6b725194a0e
- Loading branch information
Showing
12 changed files
with
5 additions
and
525 deletions.
There are no files selected for viewing
35 changes: 3 additions & 32 deletions
35
webbeans-ri/src/main/java/org/jboss/webbeans/Lifecycle.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,23 @@ | ||
package org.jboss.webbeans; | ||
|
||
import java.util.Map; | ||
|
||
import javax.webbeans.ApplicationScoped; | ||
import javax.webbeans.SessionScoped; | ||
|
||
import org.jboss.webbeans.contexts.Contexts; | ||
import org.jboss.webbeans.contexts.SessionContext; | ||
import org.jboss.webbeans.servlet.ServletApplicationMap; | ||
import org.jboss.webbeans.servlet.ServletSessionMap; | ||
|
||
public class Lifecycle | ||
{ | ||
private static ServletApplicationMap application; | ||
|
||
public static void beginApplication(ServletApplicationMap serverApplicationMap) | ||
public static void beginApplication() | ||
{ | ||
application = serverApplicationMap; | ||
} | ||
|
||
public static Map<String, Object> getApplication() | ||
{ | ||
return application; | ||
} | ||
|
||
public static void endApplication() | ||
{ | ||
Contexts.destroyContext(ApplicationScoped.class); | ||
Contexts.applicationContext.set(null); | ||
application = null; | ||
} | ||
|
||
public static void beginSession(ServletSessionMap servletSessionMap) | ||
public static void beginSession() | ||
{ | ||
Contexts.sessionContext.set(new SessionContext(servletSessionMap)); | ||
} | ||
|
||
public static void endSession(ServletSessionMap servletSessionMap) | ||
public static void endSession() | ||
{ | ||
Contexts.destroyContext(SessionScoped.class); | ||
Contexts.sessionContext.set(null); | ||
} | ||
|
||
public static void clearThreadlocals() | ||
{ | ||
Contexts.applicationContext.set(null); | ||
Contexts.sessionContext.set(null); | ||
Contexts.requestContext.set(null); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 0 additions & 30 deletions
30
webbeans-ri/src/main/java/org/jboss/webbeans/contexts/Contexts.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 0 additions & 41 deletions
41
webbeans-ri/src/main/java/org/jboss/webbeans/servlet/ContextualHttpServletRequest.java
This file was deleted.
Oops, something went wrong.
90 changes: 0 additions & 90 deletions
90
webbeans-ri/src/main/java/org/jboss/webbeans/servlet/ServletApplicationMap.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.