org.tinygroup.weblayer.webcontext.session.store.impl
类 CacheStore

java.lang.Object
  继承者 org.tinygroup.support.BeanSupport
      继承者 org.tinygroup.weblayer.webcontext.session.store.impl.CacheStore
所有已实现的接口:
org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, SessionStore

public class CacheStore
extends BeanSupport
implements SessionStore

功能说明: session 保存在缓存中的实现方案

系统版本: v1.0
开发人员: renhui
开发时间: 2013-5-28
功能描述: 写明作用,调用方式,使用场景,以及特殊情况


嵌套类摘要
 
从接口 org.tinygroup.weblayer.webcontext.session.SessionStore 继承的嵌套类/接口
SessionStore.StoreContext
 
构造方法摘要
CacheStore()
           
 
方法摘要
 void commit(Map<String,Object> modifiedAttrs, String sessionID, SessionStore.StoreContext storeContext)
          保存指定session的attributes。
 Iterable<String> getAttributeNames(String sessionID, SessionStore.StoreContext storeContext)
          取得指定session的所有attribute名称。
 Cache getCache()
           
protected  void init()
           
 void init(String storeName, SessionConfig sessionConfig)
          初始化SessionStore。
 void invaldiate(String sessionID, SessionStore.StoreContext storeContext)
          丢弃指定session ID的所有内容。
 Object loadAttribute(String attrName, String sessionID, SessionStore.StoreContext storeContext)
          装载指定session的某个attribute。
 void setCache(Cache cache)
           
 
从类 org.tinygroup.support.BeanSupport 继承的方法
afterPropertiesSet, assertInitialized, destroy, dispose, getBeanDescription, getBeanDescription, getBeanInterface, getBeanName, isInitialized, postDispose, postInit, preDispose, preInit, resolveBeanInterface, setBeanName, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

CacheStore

public CacheStore()
方法详细信息

getCache

public Cache getCache()

setCache

public void setCache(Cache cache)

init

protected void init()
覆盖:
BeanSupport 中的 init

init

public void init(String storeName,
                 SessionConfig sessionConfig)
          throws Exception
从接口 SessionStore 复制的描述
初始化SessionStore。

指定者:
接口 SessionStore 中的 init
抛出:
Exception

getAttributeNames

public Iterable<String> getAttributeNames(String sessionID,
                                          SessionStore.StoreContext storeContext)
从接口 SessionStore 复制的描述
取得指定session的所有attribute名称。

指定者:
接口 SessionStore 中的 getAttributeNames
参数:
sessionID - 要装载的session ID
storeContext - 用来取得request信息,并存放store当前的状态
返回:
attributes的列表

loadAttribute

public Object loadAttribute(String attrName,
                            String sessionID,
                            SessionStore.StoreContext storeContext)
从接口 SessionStore 复制的描述
装载指定session的某个attribute。

指定者:
接口 SessionStore 中的 loadAttribute
参数:
attrName - 要装载的attribute名称
sessionID - 要存取的session ID
storeContext - 用来取得request信息,并存放store当前的状态
返回:
attribute的值(如果存在的话)

invaldiate

public void invaldiate(String sessionID,
                       SessionStore.StoreContext storeContext)
从接口 SessionStore 复制的描述
丢弃指定session ID的所有内容。

指定者:
接口 SessionStore 中的 invaldiate
参数:
sessionID - 要丢弃的session ID
storeContext - 用来取得request信息,并存放store当前的状态

commit

public void commit(Map<String,Object> modifiedAttrs,
                   String sessionID,
                   SessionStore.StoreContext storeContext)
从接口 SessionStore 复制的描述
保存指定session的attributes。

指定者:
接口 SessionStore 中的 commit
参数:
modifiedAttrs - 要保存的attrs,如果值为null表示删除
sessionID - 要保存的sessionID
storeContext - 用来取得request信息,并存放store当前的状态


Copyright © 2006–2014 开源组织. All rights reserved.