MentaContainer

Compare Revisions

Ignore whitespace Rev 119 → Rev 120

/trunk/src/main/java/org/mentacontainer/impl/MentaContainer.java
102,7 → 102,7
for(ThreadLocal<Object> t : threadLocalsCache.values()) {
t.set(null);
t.remove();
}
}
171,7 → 171,7
cp = new ClearableHolder(c, o);
}
t.set(null);
t.remove();
retVal = o;
}
368,7 → 368,10
singletonsCache.remove(key); // just in case we are overriding a previous singleton bean...
threadLocalsCache.remove(key); // just in case we are overriding a previous thread local...
ThreadLocal<Object> threadLocal = threadLocalsCache.remove(key); // just in case we are overriding a previous thread local...
if (threadLocal != null) {
threadLocal.remove();
}
scopes.put(key, scope);