Skip to content

Use already loaded metadata when possible for AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod [SPR-13144] #17735

Closed
@spring-projects-issues

Description

@spring-projects-issues

Phil Webb opened SPR-13144 and commented

The AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod() is called frequently when a typical Spring Boot application starts and tends to show up often when profiling applications.

The majority of the calls are resolving @Configuration @Bean methods and since Spring 4.2 now surfaces getReturnTypeName() in MethodMetadata we could use this information rather than needing to iterate all methods in the class.


Issue Links:

0 votes, 5 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: bulk-closedAn outdated, unresolved issue that's closed in bulk as part of a cleaning process

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions