I'm pretty sure *this* one won't turn out to already be in there!

http://rifers.org/wiki/display/RIFE/IoC+support+for+non-element+objects

"Spring lite" for projects that just need dependency injection of non-element beans (injecting Datasource objects into DAOs, DAOs into service objects, service objects into elements, etc.) but not any of Spring's more advanced capabilities. I am using Spring on one of my projects but on my other one it seemed too heavyweight so I wrote this instead.

It is nowhere near as flexible or powerful as Spring but it starts up way faster -- Spring takes a good 5 seconds to start up on my laptop but this finishes in a few milliseconds. Those 5-second pauses add up when you're restarting the server a lot!

Now, what would be super fantastically awesomely cool would be if this dependency injection capability was built into RIFE. This would be very cool because, since RIFE manages the lifecycle of these objects and knows that they are singleton instances, they could then be reloaded on the fly by RIFE's spiffy classloader. That would cut way, way down on container restarts.

-Steve


_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to