Map.Entry next; CollectionConfiguration config; for(Iterator i = cache.entrySet().iterator(); i.hasNext(); ) { next = (Map.Entry) i.next(); if(next.getKey().toString().startsWith(collectionPath)) { config = (CollectionConfiguration) next.getValue(); if (config != null) config.getCollection().invalidateConfiguration(); i.remove(); } }
CollectionCache collectionCache = pool.getCollectionsCache(); synchronized (collectionCache) { Map.Entry next; CollectionConfiguration config; for(Iterator i = cache.entrySet().iterator(); i.hasNext(); ) { next = (Map.Entry) i.next(); if(next.getKey().toString().startsWith(collectionPath)) { config = (CollectionConfiguration) next.getValue(); if (config != null) config.getCollection().invalidateConfiguration(); i.remove(); } } }
    protected synchronized void invalidateAll(String collectionPath) {        if (!collectionPath.startsWith(CONFIG_COLLECTION))    		return;    	collectionPath = collectionPath.substring(CONFIG_COLLECTION.length());    	Map.Entry next;    	CollectionConfiguration config;    	for(Iterator i = cache.entrySet().iterator(); i.hasNext(); ) {    		next = (Map.Entry) i.next();    		if(next.getKey().toString().startsWith(collectionPath)) {    			config = (CollectionConfiguration) next.getValue();    			if (config != null)    				config.getCollection().invalidateConfiguration();    			i.remove();    		}    	}    }