-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: bulk-closedAn outdated, unresolved issue that's closed in bulk as part of a cleaning processAn outdated, unresolved issue that's closed in bulk as part of a cleaning process
Description
Liu, Yinwei David opened SPR-8068 and commented
Is it possible to add a new API to allow user access inner bean in the context?
According to the javadoc of ApplicationContext.getBeansOfType(Class type), it won't return the nested beans, This method introspects top-level beans only. It does not check nested beans which might match the specified type as well.
Could you please let me know how we get nested bean from ApplicationContext?
e.g. we cannot get the bean b1 from application context by calling getBeansOfType.
<bean id="a1" class="class.A">
<property name="b">
<bean name="b1" class="class.B"/>
</property>
</bean>
Affects: 3.0.5
Issue Links:
- Revised support for bean definition visibility and overriding [SPR-8189] #12839 Revised support for bean definition visibility and overriding ("is depended on by")
1 votes, 3 watchers
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: bulk-closedAn outdated, unresolved issue that's closed in bulk as part of a cleaning processAn outdated, unresolved issue that's closed in bulk as part of a cleaning process