Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement live injections #44

Closed
tschneidereit opened this issue Feb 6, 2011 · 5 comments

Comments

Projects
None yet
3 participants
@tschneidereit
Copy link
Owner

commented Feb 6, 2011

Marking an injection point as "live" should cause it to be updated as soon as the mapped value changes.

@tschneidereit

This comment has been minimized.

Copy link
Owner Author

commented Oct 8, 2011

Turns out I'll probably not implement this feature after all. If anyone absolutely wants to implement it and sends a pull request with good implementation and tests, I'll probably merge that, but I'm mostly of the opinion that a real binding solution should be used here, instead.

@darl2ng

This comment has been minimized.

Copy link

commented May 30, 2012

Hi,

Just for the record, I don't think a general circular case such as A needs B, B needs C and C needs A should fit with a binding solution. Indeed, binding to me would be the case where A needs B and B needs A, thus both direction.

Thanks for your great work,

@darl2ng

This comment has been minimized.

Copy link

commented Jul 4, 2012

I'd like to add that a setter injection that supports circular injection as in Spring could be interesting :-)

http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/beans.html#d0e2299

@tschneidereit

This comment has been minimized.

Copy link
Owner Author

commented Jul 4, 2012

I'd like to add that a setter injection that supports circular injection as in Spring could be interesting :-)

http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/beans.html#d0e2299

While I agree that having support for circular dependencies would be
handy, supporting it would require a major rewrite of core parts of
Swiftsuspenders. I'm very unlikely to do this rewrite, so I'm afraid
this isn't going to happen, sorry.

@MindScriptAct

This comment has been minimized.

Copy link

commented Jul 5, 2012

Hi,

circular dependencies are supported in mvcExpress. Currently it is on the branch : release_1.0

MindScriptAct/mvcExpress-framework@9e15e2e

My approach is simple - if dependency is not satisfied AND pending injection feature is enabled - injection goes to pending dependencies registry.
If dependency is set in fixed(can be changed) time frame... all is well.. if not - error is thrown.

By default I disable the feature because some nasty synchronization problem might occur if programmer does not know what he is doing...

Maybe it will help.

cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.