org.jasig.portal.spring.web.context.support
Class PortalSessionScope

java.lang.Object
  extended by org.jasig.portal.spring.web.context.support.PortalSessionScope
All Implemented Interfaces:
Scope

public class PortalSessionScope
extends Object
implements Scope

Wraps SessionScope to provide functionality when no session is available by using a singleton instance.

Version:
$Revision$
Author:
Eric Dalquist

Field Summary
static String DESTRUCTION_CALLBACK_NAME_PREFIX
           
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
PortalSessionScope()
           
 
Method Summary
 Object get(String name, ObjectFactory objectFactory)
           
 String getConversationId()
           
 IPortalRequestUtils getPortalRequestUtils()
           
protected  HttpSession getPortalSesion(boolean create)
           
 void registerDestructionCallback(String name, Runnable callback)
           
 Object remove(String name)
           
 void setPortalRequestUtils(IPortalRequestUtils portalRequestUtils)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESTRUCTION_CALLBACK_NAME_PREFIX

public static final String DESTRUCTION_CALLBACK_NAME_PREFIX

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

PortalSessionScope

public PortalSessionScope()
Method Detail

getPortalRequestUtils

public IPortalRequestUtils getPortalRequestUtils()

setPortalRequestUtils

public void setPortalRequestUtils(IPortalRequestUtils portalRequestUtils)

get

public Object get(String name,
                  ObjectFactory objectFactory)
Specified by:
get in interface Scope

getConversationId

public String getConversationId()
Specified by:
getConversationId in interface Scope

registerDestructionCallback

public void registerDestructionCallback(String name,
                                        Runnable callback)
Specified by:
registerDestructionCallback in interface Scope

remove

public Object remove(String name)
Specified by:
remove in interface Scope

getPortalSesion

protected HttpSession getPortalSesion(boolean create)


Copyright © 2010 Jasig. All Rights Reserved.