MentaContainer

Compare Revisions

Ignore whitespace Rev 59 → Rev 60

/trunk/src/main/java/org/mentacontainer/impl/MentaContainer.java
31,7 → 31,7
 
private Set<Dependency> dependencies = new HashSet<Dependency>();
public void clear(Scope scope) {
public synchronized void clear(Scope scope) {
if (scope == Scope.SINGLETON) {
46,7 → 46,7
}
}
public <T> T clear(String key) {
public synchronized <T> T clear(String key) {
if (!beans.containsKey(key)) return null;
84,7 → 84,7
}
}
 
public <T> T get(String key) {
public synchronized <T> T get(String key) {
 
if (!beans.containsKey(key)) return null;
 
289,7 → 289,7
return this;
}
 
public boolean check(String key) {
public synchronized boolean check(String key) {
if (!beans.containsKey(key)) return false;