MentaContainer

Compare Revisions

Ignore whitespace Rev 102 → Rev 103

/trunk/src/main/java/org/mentacontainer/impl/MentaContainer.java
452,13 → 452,15
@Override
public <T> T construct(Class<? extends Object> klass) {
for(ConstructorDependency d : forConstructMethod) System.out.println(d);
ClassFactory f = new ClassFactory(this, klass, forConstructMethod);
return (T) f.getInstance();
}
 
@Override
public Container populate(Object bean) {
public void inject(Object bean) {
Provider p = new Provider() {
484,8 → 486,6
throw new RuntimeException("Error populating bean: " + bean, e);
}
 
return this;
}
 
@Override