synchronized public void insert(Object key, Object object) { delegate.insert(key, object); }
public V put(K key, V value) { V old = (V)policy.get(key); policy.insert(key, value); return old; }
public void put(String classname, ClassReader reader) { //Something strange is going on with the policy, sometimes it says duplicate entries even when I test with a peek/get, so always remove the existing entry policy.remove(classname); policy.insert(classname, reader); }
public void put(String classname, CtClass clazz) { synchronized (policy) { //Something strange is going on with the policy, sometimes it says duplicate entries even when I test with a peek/get, so always remove the existing entry policy.remove(classname); policy.insert(classname, clazz); } }
public void insert(EnterpriseContext ctx) { if (ctx == null) throw new IllegalArgumentException("Can't insert a null object in the cache"); Object key = getKey(ctx); synchronized (getCacheLock()) { // the cache will throw an IllegalStateException if we try to insert // something that is in the cache already, so we don't check here getCache().insert(key, ctx); } }
domainCache.insert(principal, info); if (trace) log.trace("Inserted cache info: " + info);
domainCache.insert(principal, info); if( trace ) log.trace("Inserted cache info: "+info);
cache.insert(id, ctx);