/** * PUBLIC: * Set the class of identity map to be the soft identity map. * This map uses soft references to only cache all object in-memory, until memory is low. * Note that "low" is interpreted differently by different JVM's. * The default is the "SoftCacheWeakIdentityMap". */ public void useSoftIdentityMap() { getCachePolicy().useSoftIdentityMap(); }
/** * PUBLIC: * Set the class of identity map to be the soft identity map. * This map uses soft references to only cache all object in-memory, until memory is low. * Note that "low" is interpreted differently by different JVM's. * The default is the "SoftCacheWeakIdentityMap". */ public void useSoftIdentityMap() { getCachePolicy().useSoftIdentityMap(); }
classDescriptor.getCachePolicy().useWeakIdentityMap(); } else if (m_type.equals(CacheType.SOFT.name())) { classDescriptor.getCachePolicy().useSoftIdentityMap(); } else if (m_type.equals(CacheType.HARD_WEAK.name())) { classDescriptor.getCachePolicy().useHardCacheWeakIdentityMap();