Details
Description
The Lifecycle Class of Seam requires our ServletExternalContext to have a public accessor to invalidate the session.
* Invalidate the session, no matter what kind of session it is
* (portlet or servlet). Why is this method not on ExternalContext?!
* Oh boy, those crazy rascals in the JSF EG...
*/
private static void invalidateSession(ExternalContext externalContext)
{
Object session = externalContext.getSession(false);
if (session!=null)
{
try
{
session.getClass().getMethod("invalidate").invoke(session);
}
catch (Exception e)
{
throw new RuntimeException(e);
}
}
* Invalidate the session, no matter what kind of session it is
* (portlet or servlet). Why is this method not on ExternalContext?!
* Oh boy, those crazy rascals in the JSF EG...
*/
private static void invalidateSession(ExternalContext externalContext)
{
Object session = externalContext.getSession(false);
if (session!=null)
{
try
{
session.getClass().getMethod("invalidate").invoke(session);
}
catch (Exception e)
{
throw new RuntimeException(e);
}
}
Issue Links
- duplicates
-
ICE-1967 Wrapping session objects in anonymous classes kills calls by introspection
- Closed
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #14688 | Mon Aug 20 12:17:34 MDT 2007 | mircea.toma | Make intercepting class 'public' since anonymous classes have 'package' access -- |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/ServletExternalContext.java
|