freemarker.cache
Class StrongCacheStorage

java.lang.Object
  extended byfreemarker.cache.StrongCacheStorage
All Implemented Interfaces:
CacheStorage

Deprecated. use MruCacheStorage instead.

public class StrongCacheStorage
extends java.lang.Object
implements CacheStorage

Strong cache storage is a cache storage that simply wraps a HashMap. It holds a strong reference to all objects it was passed, therefore prevents the cache from being purged during garbage collection. This class is NOT thread-safe. If it is accessed from multiple threads concurrently, proper synchronization must be provided by the callers. Note that TemplateCache, the natural user of this class provides the necessary synchronizations when it uses the class.

Version:
$Id: StrongCacheStorage.java,v 1.3 2003/09/22 20:47:03 ddekany Exp $
Author:
Attila Szegedi

Constructor Summary
StrongCacheStorage()
          Deprecated.  
 
Method Summary
 void clear()
          Deprecated.  
 java.lang.Object get(java.lang.Object key)
          Deprecated.  
 void put(java.lang.Object key, java.lang.Object value)
          Deprecated.  
 void remove(java.lang.Object key)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrongCacheStorage

public StrongCacheStorage()
Deprecated. 
Method Detail

get

public java.lang.Object get(java.lang.Object key)
Deprecated. 
Specified by:
get in interface CacheStorage

put

public void put(java.lang.Object key,
                java.lang.Object value)
Deprecated. 
Specified by:
put in interface CacheStorage

remove

public void remove(java.lang.Object key)
Deprecated. 
Specified by:
remove in interface CacheStorage

clear

public void clear()
Deprecated. 
Specified by:
clear in interface CacheStorage