MentaContainer

Compare Revisions

Regard whitespace Rev 23 → Rev 22

/trunk/src/main/java/org/mentacontainer/impl/MentaComponent.java
32,8 → 32,6
private final boolean singleton;
private Object singletonValue = null;
 
public MentaComponent(String name, Class<? extends Object> klass, boolean singleton) {
this.name = name;
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;
}
}