394395396397398399400
* Individual query results will be registered as types changed * listeners. We want such query results to be gc'd once * the only reference is held by the list of expiration listeners. */ protected Collection newListenerCollection() { return new ConcurrentReferenceHashSet (ConcurrentReferenceHashSet.WEAK); }
481482483484485486487488489
if (FinalizingBrokerImpl.class.isAssignableFrom( bv.getTemplateBrokerType(_conf))) { return MapBackedSet.decorate(new ConcurrentHashMap(), new Object() { }); } else { return new ConcurrentReferenceHashSet( ConcurrentReferenceHashSet.WEAK); } }
817818819820821822823824825826
/** * Method insures that deserialized EMF has this reference re-instantiated */ private Collection getPcClassLoaders() { if (_pcClassLoaders == null) _pcClassLoaders = new ConcurrentReferenceHashSet( ConcurrentReferenceHashSet.WEAK); return _pcClassLoaders; }
459460461462463464465466467468469
if (factory != null) return factory; // reset these transient fields to empty values _transactional = new ConcurrentHashMap(); _brokers = new ConcurrentReferenceHashSet( ConcurrentReferenceHashSet.WEAK); makeReadOnly(); return this; }
390391392393394395396
393394395396397398399
315316317318319320321
355356357358359360361