SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-533
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Shay Banon
Reporter: Kenny MacLeod
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Compass

[CompassContextBeanPostProcessor] Check parent bean factories for Compass bean

Created: 06/Feb/08 12:24 PM   Updated: 06/Feb/08 05:01 PM
Component/s: Compass::Spring
Affects Version/s: 2.0 M1
Fix Version/s: 1.2.2, 2.0.0 M2


 Description  « Hide
When CompassContextBeanPostProcessor is searching for the Compass bean, it calls getBeanNamesForType() on the application context.

This works fine unless the Compass bean is in a parent application context, which is how I want to structure mine.

The easy fix, as mentioned in the javadoc for the getBeanNamesForType() method, is to use BeanFactoryUtils.beanNamesForTypeIncludingAncestors(). This will ssearch up through the context hierarchy until it finds a match.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.