001         package com.croftsoft.core.util.cache;
002    
003         import java.io.*;
004         import java.util.*;
005    
006         import com.croftsoft.core.util.id.*;
007    
008         /*********************************************************************
009         * A Cache implementation that is backed by a WeakHashMap.
010         *
011         * <P>
012         *
013         * This Cache will dump its content if the IDs are not strongly
014         * reachable.
015         *
016         * @see
017         *   java.util.WeakHashMap
018         * @see
019         *   MemoryMapCache
020         *
021         * @version
022         *   1999-04-18
023         * @author
024         *   <a href="https://www.croftsoft.com/">David Wallace Croft</a>
025         *********************************************************************/
026    
027         public class  WeakCache extends MemoryMapCache
028         //////////////////////////////////////////////////////////////////////
029         //////////////////////////////////////////////////////////////////////
030         {
031    
032         public  WeakCache ( )
033         //////////////////////////////////////////////////////////////////////
034         {
035           super ( new WeakHashMap ( ) );
036         }
037    
038         //////////////////////////////////////////////////////////////////////
039         //////////////////////////////////////////////////////////////////////
040         }