Skip to content

Commit

Permalink
avoid store all bean name
Browse files Browse the repository at this point in the history
  • Loading branch information
GungnirLaevatain authored and jhoeller committed Nov 11, 2019
1 parent 92efe95 commit d494621
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -59,7 +59,9 @@ public ApplicationListenerDetector(AbstractApplicationContext applicationContext

@Override
public void postProcessMergedBeanDefinition(RootBeanDefinition beanDefinition, Class<?> beanType, String beanName) {
this.singletonNames.put(beanName, beanDefinition.isSingleton());
if (ApplicationListener.class.isAssignableFrom(beanType)) {
this.singletonNames.put(beanName, beanDefinition.isSingleton());
}
}

@Override
Expand Down

0 comments on commit d494621

Please sign in to comment.