Woolpack API

クラス
woolpack.factory.ConcurrentMapCache の使用

ConcurrentMapCache を使用しているパッケージ
woolpack.factory ファクトリ部品のパッケージです。 
woolpack.web Servlet APIの各スコープをMapConcurrentMapで抽象化したインタフェースと それに対する操作を定義するパッケージです。 
 

woolpack.factory での ConcurrentMapCache の使用
 

ConcurrentMapCache を返す woolpack.factory のメソッド
static
<C,K,E extends java.lang.Exception>
ConcurrentMapCache<C,K,E>
FactoryUtils.concurrentCache(Fn<? super C,? extends java.util.concurrent.ConcurrentMap<? super K,java.lang.Object>,? extends E> mapGetter, Fn<? super C,K,? extends E> keyGetter, Fn<? super C,?,? extends E> maker)
           
 

woolpack.web での ConcurrentMapCache の使用
 

ConcurrentMapCache を返す woolpack.web のメソッド
static
<C extends ContainerContext<WebContext>>
ConcurrentMapCache<C,java.lang.String,java.lang.Exception>
WebUtils.application(Fn<? super C,?,? extends java.lang.Exception> fn)
          アプリケーションスコープでキャッシュする関数を生成します。
static
<C extends ContainerContext<WebContext>>
ConcurrentMapCache<C,java.lang.String,java.lang.Exception>
WebUtils.session(Fn<? super C,?,? extends java.lang.Exception> fn)
          セッションスコープでキャッシュする関数を生成します。
 


Woolpack API

Copyright (C) 2006-2007 Takahiro Nakamura. All rights reserved.