Skip to content

Commit

Permalink
解决有代理对象时的循环依赖问题
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekYRC committed Jan 31, 2021
1 parent 75e8309 commit cf3d98b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public Object getSingleton(String beanName) {
@Override
public void addSingleton(String beanName, Object singletonObject) {
singletonObjects.put(beanName, singletonObject);
earlySingletonObjects.remove(beanName);
singletonFactories.remove(beanName);
}

protected void addSingletonFactory(String beanName, ObjectFactory<?> singletonFactory) {
Expand Down

0 comments on commit cf3d98b

Please sign in to comment.