Package org.apache.commons.collections.map

Examples of org.apache.commons.collections.map.ReferenceIdentityMap


    private SequenceManager transientSequenceManager;

    public IdentityFactoryImpl(PersistenceBroker broker)
    {
        this.broker = broker;
        this.objectToIdentityMap = new ReferenceIdentityMap(ReferenceIdentityMap.WEAK, ReferenceIdentityMap.HARD, true);
        this.transientSequenceManager = new SequenceManagerTransientImpl(broker);
        broker.addListener(this, true);
    }
View Full Code Here


    {
        if (key != null)
        {
            if (fkCache == null)
            {
                fkCache = new ReferenceIdentityMap (ReferenceIdentityMap.WEAK, ReferenceIdentityMap.HARD, true);
            }
            if (value != null)
                 fkCache.put(key, value);
             else
                 fkCache.remove (key);
View Full Code Here

   */
  @SuppressWarnings("unchecked")
  public static void putWrapperForObject(ClassLoader cl, Object javaObject, Object wrapper) {
    Map<Object, Object> cache = m_javaWrapperCache.get(cl);
    if (cache == null) {
      cache = new ReferenceIdentityMap(AbstractReferenceMap.WEAK, AbstractReferenceMap.WEAK);
      m_javaWrapperCache.put(cl, cache);
    }
    cache.put(javaObject, wrapper);
  }
View Full Code Here

TOP

Related Classes of org.apache.commons.collections.map.ReferenceIdentityMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.