MentaContainer

Compare Revisions

Ignore whitespace Rev 147 → Rev 148

/trunk/src/main/java/org/mentacontainer/impl/MentaContainer.java
39,7 → 39,7
private Set<ConstructorDependency> forConstructMethod = Collections.synchronizedSet(new HashSet<ConstructorDependency>());
@Override
public Class<? extends Object> getType(Object key) {
public Class<?> getType(Object key) {
String k = InjectionUtils.getKeyName(key);
395,7 → 395,7
}
@Override
public ConfigurableFactory ioc(Object key, Class<? extends Object> klass) {
public ConfigurableFactory ioc(Object key, Class<?> klass) {
ConfigurableFactory cc = new ClassFactory(this, klass);
405,7 → 405,7
}
@Override
public ConfigurableFactory ioc(Object key, Class<? extends Object> klass, Scope scope) {
public ConfigurableFactory ioc(Object key, Class<?> klass, Scope scope) {
ConfigurableFactory cc = new ClassFactory(this, klass);
440,7 → 440,7
 
private void autowireBySetter(String targetProperty, String sourceFromContainer) {
Class<? extends Object> sourceType = getType(sourceFromContainer);
Class<?> sourceType = getType(sourceFromContainer);
 
SetterDependency d = new SetterDependency(targetProperty, sourceFromContainer, sourceType);
454,7 → 454,7
private void autowireByConstructor(String sourceFromContainer) {
Class<? extends Object> sourceType = getType(sourceFromContainer);
Class<?> sourceType = getType(sourceFromContainer);
ConstructorDependency d = new ConstructorDependency(sourceFromContainer, sourceType);
467,7 → 467,7
}
@Override
public <T> T construct(Class<? extends Object> klass) {
public <T> T construct(Class<?> klass) {
ClassFactory f = new ClassFactory(this, klass, forConstructMethod);