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
Make intercepting class 'public' since anonymous classes have 'package' access.