org.seasar.tuigwaa.cms.core.wiki.base
クラス CacheManager

java.lang.Object
  拡張org.seasar.tuigwaa.cms.core.wiki.base.CacheManager

public class CacheManager
extends Object

Caching parse tree for specified page.

作成者:
someda

メソッドの概要
 void cache(Page page, Node node)
           
 void clean()
           
 Node get(Page page)
          Returns cached node.
static CacheManager getInstance()
           
 boolean isCachable(Page page, Node node)
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

getInstance

public static CacheManager getInstance()

isCachable

public boolean isCachable(Page page,
                          Node node)

get

public Node get(Page page)
Returns cached node. Before returning, this checks 2 items.
  1. The cache contents of the page exists or not. If exsists, proceeds next step, otherwise returns null.
  2. The last modification time of given page is newer than cache creation date. If true, invalidating the cache contents and returns null.


cache

public void cache(Page page,
                  Node node)

clean

public void clean()


Copyright © 2005-2006 The Seasar Foundation and the others.. All Rights Reserved.