Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-336
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Shay Banon
Reporter: Matt Solnit
Votes: 0
Watchers: 0

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

Spring 2.0 namespace support for lazy-init=true

Created: 19/Dec/06 11:33 AM   Updated: 19/Dec/06 03:45 PM
Component/s: Compass::Spring
Affects Version/s: 1.1 M3
Fix Version/s: 1.1 RC1

 Description  « Hide

<!-- Lazy init. Note that currently setting default-lazy-init="true"
on the <beans> root element does not seem to have any effect. -->
<compass:compass name="compass" dataSource="dataSource" lazy-init="true">
<!-- Compass configuration details go here -->

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Matt Solnit added a comment - 19/Dec/06 11:34 AM
I would also like to request support for parent-child bean relationships, if possible.

Shay Banon added a comment - 19/Dec/06 01:31 PM
I have added the lazy-init option. Can you double check it?

Shay Banon added a comment - 19/Dec/06 01:32 PM
When you say parent child relationship, do you mean the option to define the compass bean as an inner bean? I am not sure that it is possible,.

Matt Solnit added a comment - 19/Dec/06 01:35 PM
Thanks! I'll try it out. Use the latest snapshot, right?

By parent-child relationship, I mean bean inheritance.

Shay Banon added a comment - 19/Dec/06 01:59 PM
Yea, use the snapshot. Regarding the parent part, if you mean bean inheritance that you can use in Spring, I don't see a simple way to have it with namespaces. I will need to investigate it more within Spring codebase.

Matt Solnit added a comment - 19/Dec/06 02:20 PM
I just tried the snapshot, and lazy-init='true' works exactly as expected. Woo hoo! Thanks for the super-fast turnaround.

Setting default-lazy-init='true' in the root element (<beans/>) would also be nice to have, but it's not as important because I can still get the job done with what's available.

Finally, if you prefer, I can create a new JIRA issue to track bean inheritance (so that this one can be closed).

Shay Banon added a comment - 19/Dec/06 03:44 PM
Another issue sounds good. I will close this one.