MentaContainer

Compare Revisions

Ignore whitespace Rev 23 → Rev 22

/trunk/src/main/java/org/mentacontainer/impl/MentaComponent.java
31,8 → 31,6
private Map<String, Method> cache = null;
private final boolean singleton;
private Object singletonValue = null;
 
public MentaComponent(String name, Class<? extends Object> klass, boolean singleton) {
222,8 → 220,6
public Object getInstance() throws InstantiationException {
if (singleton && singletonValue != null) return singletonValue;
Object obj = null;
if (initValues != null && initValues.size() > 0) {
275,8 → 271,6
}
}
if (obj != null && singleton) singletonValue = obj;
return obj;
}
}