Skip to content

improve NamedContextFactory.getInstance() perfomance #825

@spencergibb

Description

@spencergibb

for NamedContextFactory.getInstance(String name, Class<T> type) there's no reason to call BeanFactoryUtils.beanNamesForTypeIncludingAncestors(). Just catch NoSuchBeanDefinitionException and return null.

See spring-cloud/spring-cloud-gateway#1941

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions