protected void removeContextFromReadyStore(Object primaryKey, EntityContextImpl context) { readyStore.remove(primaryKey, context); }
public void componentDestroyed(Object instance, ComponentInvocation inv) { if (_logger.isLoggable(Level.FINE)) { _logger.log(Level.FINE, "TM: componentDestroyed" + instance); _logger.log(Level.FINE, "TM: resourceTable before: " + resourceTable.getEntryCount()); } // Access resourceTable directly to avoid adding an empty list then removing it List l = (List)resourceTable.remove(getResourceTableKey(instance, inv)); processResourceList(l); if (_logger.isLoggable(Level.FINE)) _logger.log(Level.FINE, "TM: resourceTable after: " + resourceTable.getEntryCount()); }
/** * doStartTag is called when the flush tag is encountered. By * the time this is called, the tag attributes are already set. * * @throws JspException the standard exception thrown * @return SKIP_BODY since the tag should be empty */ public int doStartTag() throws JspException { // get the cache from the specified scope Cache cache = CacheUtil.getCache(pageContext, _scope); // generate the cache key using the user specified key. if (_key != null) { String key = CacheUtil.generateKey(_key, pageContext); // remove the entry for the key cache.remove(key); if (_logger.isLoggable(Level.FINE)) _logger.fine("FlushTag: clear ["+ key +"]"); } else { // clear the entire cache cache.clear(); if (_logger.isLoggable(Level.FINE)) _logger.fine("FlushTag: clear cache"); } return SKIP_BODY; }
protected EntityContextImpl getReadyEJB(EjbInvocation inv) { Object primaryKey = inv.ejbObject.getKey(); EntityContextImpl context = null; // Try and get an EJB instance for this primaryKey from the // readyStore context = (EntityContextImpl)readyStore.remove(primaryKey); if (context == null || context.getState() != BeanState.READY) { context = activateEJBFromPool(primaryKey, inv); } return context; } //getReadyEJB(inv)
oldEntry = (HttpCacheEntry)cache.remove(key);