Skip to content

Commit

Permalink
修复Container类中,根据bean name获取实例的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kexun committed Feb 24, 2016
1 parent e8554d6 commit 3e44ccd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ioc/3.myioc.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ public class SampleContainer implements Container {

@Override
public <T> T getBeanByName(String name) {
Object object = beans.get(name);
String className = beankeys.get(name);
Object obj = beans.get(className);
if(null != object){
return (T) object;
}
Expand Down

0 comments on commit 3e44ccd

Please sign in to comment.