Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.opencms.launcher
Class CmsTemplateCache  view CmsTemplateCache download CmsTemplateCache.java

java.lang.Object
  extended bycom.opencms.launcher.CmsTemplateCache
All Implemented Interfaces:
com.opencms.boot.I_CmsLogChannels, I_CmsTemplateCache

class CmsTemplateCache
extends java.lang.Object
implements I_CmsTemplateCache, com.opencms.boot.I_CmsLogChannels


Field Summary
private  com.opencms.flex.util.CmsLruHashMap templateCache
          Hashtable to store the cached data
 
Fields inherited from interface com.opencms.boot.I_CmsLogChannels
C_FLEX_CACHE, C_FLEX_LOADER, C_LOGGING, C_MODULE_CRITICAL, C_MODULE_DEBUG, C_MODULE_INFO, C_OPENCMS_CACHE, C_OPENCMS_CRITICAL, C_OPENCMS_CRONSCHEDULER, C_OPENCMS_DEBUG, C_OPENCMS_ELEMENTCACHE, C_OPENCMS_INFO, C_OPENCMS_INIT, C_OPENCMS_POOL, C_OPENCMS_STATICEXPORT, C_OPENCMS_STREAMING, C_PREPROCESSOR_IS_LOGGING
 
Constructor Summary
CmsTemplateCache()
          Default constructor to create a template cache
 
Method Summary
 void clearCache()
          Deletes all documents from the template cache.
 void clearCache(java.lang.Object key)
          Deletes the document with the given key from the template cache.
 byte[] get(java.lang.Object key)
          Gets a previously cached template with the given key.
 boolean has(java.lang.Object key)
          Checks if there exists a cached template content for a given key.
 void put(java.lang.Object key, byte[] content)
          Stores a template content in the cache using the given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

templateCache

private com.opencms.flex.util.CmsLruHashMap templateCache
Hashtable to store the cached data

Constructor Detail

CmsTemplateCache

public CmsTemplateCache()
Default constructor to create a template cache

Method Detail

clearCache

public void clearCache()
Deletes all documents from the template cache.

Specified by:
clearCache in interface I_CmsTemplateCache

clearCache

public void clearCache(java.lang.Object key)
Deletes the document with the given key from the template cache.

Specified by:
clearCache in interface I_CmsTemplateCache

get

public byte[] get(java.lang.Object key)
Gets a previously cached template with the given key.

Specified by:
get in interface I_CmsTemplateCache

has

public boolean has(java.lang.Object key)
Checks if there exists a cached template content for a given key.

Specified by:
has in interface I_CmsTemplateCache

put

public void put(java.lang.Object key,
                byte[] content)
Stores a template content in the cache using the given key.

Specified by:
put in interface I_CmsTemplateCache