Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

oracle.javatools.resourcebundle
Class ResourceBundleManager.BundleCache<K,V>

java.lang.Object
  extended by oracle.javatools.util.Maps.AbstractHashMap<K,V,E>
      extended by oracle.javatools.util.Maps.AbstractLinkedHashMap<K,V,Maps.SoftLinkedEntry<K,V>>
          extended by oracle.javatools.util.Maps.SoftLinkedHashMap<K,V>
              extended by oracle.javatools.resourcebundle.ResourceBundleManager.BundleCache<K,V>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<K,V>
Enclosing class:
ResourceBundleManager

public static class ResourceBundleManager.BundleCache<K,V>
extends Maps.SoftLinkedHashMap<K,V>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class oracle.javatools.util.Maps.AbstractHashMap
DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR, MAXIMUM_CAPACITY
 
Constructor Summary
ResourceBundleManager.BundleCache()
           
 
Method Summary
 boolean releaseBundle(ResourceBundleWrapper bundle)
           
protected  boolean removeEldestEntry(Maps.SoftLinkedEntry<K,V> eldest)
          Gets whether to evict the eldest entry from this map.
 
Methods inherited from class oracle.javatools.util.Maps.SoftLinkedHashMap
createEntry
 
Methods inherited from class oracle.javatools.util.Maps.AbstractLinkedHashMap
clear, createEntryIterator, createEntrySetIterator, createKeySetIterator, createValuesIterator, entryEvicted, evictExistingEntry, getEldestEntry, mapChanged
 
Methods inherited from class oracle.javatools.util.Maps.AbstractHashMap
addEntry, capacity, change, clone, containsKey, containsValue, entryAccessed, entryAdded, entryChanged, entryPurged, entryRemoved, entrySet, equals, get, getChangeCount, getEntry, getQueue, hashCode, isEmpty, keyEquals, keyHashCode, keySet, loadFactor, mapConstructed, mapInitialized, purge, purgeEntry, put, putAll, remove, removeExistingEntry, removeKey, size, toString, valueEquals, valueHashCode, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceBundleManager.BundleCache

public ResourceBundleManager.BundleCache()
Method Detail

removeEldestEntry

protected boolean removeEldestEntry(Maps.SoftLinkedEntry<K,V> eldest)
Description copied from class: Maps.AbstractLinkedHashMap
Gets whether to evict the eldest entry from this map. Invoked when an entry is added to the cache, after Maps.AbstractHashMap.entryAdded(E) is invoked. If Maps.AbstractHashMap.entryAdded(E) modifies the map, however, this method is not invoked. The removal of the entry, if requested, causes the Maps.AbstractLinkedHashMap.entryEvicted(E) method to be invoked, rather than the Maps.AbstractHashMap.entryRemoved(E) method.

The Maps.AbstractLinkedHashMap implementation returns false.

In an insertion-ordered map, the eldest entry is the least recently inserted one; in an access-ordered map, it is the least recently accessed entry.

This method is provided for compatibility with LinkedHashMap.removeEldestEntry(java.util.Map.Entry).

Overrides:
removeEldestEntry in class Maps.AbstractLinkedHashMap<K,V,Maps.SoftLinkedEntry<K,V>>
Parameters:
eldest - The eldest entry in the map.
Returns:
whether the eldest entry should be evicted.

releaseBundle

public boolean releaseBundle(ResourceBundleWrapper bundle)

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

Copyright © 1997, 2010, Oracle. All rights reserved.