Issue Details (XML | Word | Printable)

Key: MULE-3675
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Dimitar Dimitrov
Votes: 0
Watchers: 0
Operations

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

Beans created by object factories not autowired

Created: 18/Sep/08 05:34 PM   Updated: 20/Nov/08 04:29 AM
Component/s: Core: Configuration, Core: Lifecycle, Modules: Spring
Affects Version/s: 2.0.2
Fix Version/s: 2.1.x Backlog

Time Tracking:
Not Specified

Labels:
User impact: Low
Effort points: 3


 Description  « Hide
Service components created by the Mule object factories (all except <spring-object>) are not injected by Spring.
Also, the Mule XxxAware interfaces do not work (same reason I guess)

A workaround is to define the component as a Spring bean and reference it from the service component using the <spring-object ref="springId"> object factory.



 All   Comments   Work Log   Change History   Transitions   FishEye      Sort Order: Ascending order - Click to sort in descending order
Daniel Feist added a comment - 18/Sep/08 09:09 PM
Hi,
This is by design, mule-core doesn't depend on spring and so object factories (except spring-object) do not use spring or create the instances as spring beans. I believe the Mule ServiceAware interface can be used anyway.

Dirk Olmes added a comment - 19/Sep/08 03:04 AM
Putting this on the backlog as I only see one TODO left: confirm that the ServiceAware injection works and maybe updating the documentation.