Dynamic Dependency Injection
Good morning,
I've worked with JBoss Seam, and a functionality that I miss in Spring is the use of injection dynamics.
I find this feature very useful in some situations. In the Spring we could, for example, in a web context, have an Application scoped bean, which has a dependency on Session scope. Or a bean Session scoped, with a reliance on scoped Request.
And these dependencies would be reinjected in the beans whenever the container to be created, not just once (at the time of creation of the bean), such as Spring does today.
Today my solution to this type of scenario are the lookup-methods. It is an approach that does not please me much, with all respect.
They consider this useful feature? I'm thinking to hold a fork of Spring to develop, but only if the community is in agreement.
If not, could, please show me another solution?
Forgive my bad English.
Thanks!