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
| 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
|
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Mircea Toma [ mircea.toma ] |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Fix Version/s | 1.6.1 [ 10070 ] | |
| Affects Version/s | 1.6 [ 10031 ] | |
| Affects Version/s | 1.6.1 [ 10070 ] | |
| Security | Private [ 10001 ] | |
| Assignee | Mircea Toma [ mircea.toma ] |
| Status | Resolved [ 5 ] | Closed [ 6 ] |

Make intercepting class 'public' since anonymous classes have 'package' access.