-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement
Milestone
Description
See this comment for details.
I don't think we currently have a way to tell the predicted type of a bean without initializing it. It might be nice if we could either surface a getType(String name, boolean allowEagerInit)
or perhaps add a callback based approach similar to the existing getBeanNames...
methods:
<T> void doWithBeanNamesForType(@Nullable Class<T> type, boolean includeNonSingletons, boolean allowEagerInit, BiConsumer<String, Class<T>> consumer);
We should wait until #23341 is merged before taking this on.
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement