MentaContainer

Compare Revisions

Ignore whitespace Rev 144 → Rev 145

/trunk/src/main/java/org/mentacontainer/impl/MentaContainer.java
43,7 → 43,7
String k = InjectionUtils.getKeyName(key);
Factory<?> factory = poolsByName.get(k);
Pool<?> factory = poolsByName.get(k);
if (factory == null) return null;
183,7 → 183,7
 
if (!poolsByName.containsKey(keyString)) return null;
 
Factory<?> c = poolsByName.get(keyString);
Pool<?> c = poolsByName.get(keyString);
Scope scope = scopes.get(keyString);
353,12 → 353,13
}
@Override
public <T> Factory<T> ioc(Object key, Factory<T> factory, Scope scope) {
return ioc(key, fromFactory(factory), scope);
public void ioc(Object key, Factory<?> factory, Scope scope) {
ioc(key, fromFactory(factory), scope);
}
@Override
public <T> Pool<T> ioc(Object key, Pool<T> factory, Scope scope) {
public void ioc(Object key, Pool<?> factory, Scope scope) {
String keyString = InjectionUtils.getKeyName(key);
374,20 → 375,18
scopes.put(keyString, scope);
forConstructMethod.add(new ConstructorDependency(keyString, factory.getType()));
return factory;
}
@Override
public <T> Factory<T> ioc(Object key, Factory<T> factory) {
public void ioc(Object key, Factory<?> factory) {
return ioc(key, fromFactory(factory));
ioc(key, fromFactory(factory));
}
@Override
public <T> Pool<T> ioc(Object key, Pool<T> pool) {
public void ioc(Object key, Pool<?> pool) {
return ioc(key, pool, Scope.NONE);
ioc(key, pool, Scope.NONE);
}
@Override