Scoped bean lifecycle management
I am reading, with interest, about request & session scoped beans.
They seem to promise a better solution to the one that I'm currently employing, but I can't seem to find any way of doing the following.
Provide a BeanPostProcessor style hookpoint that is invoked specifically when a bean is created in a particular scope. This post processor would be supplied, in addition to the bean and it's name, a reference to the scope that the bean was instantiated in.
The reason that I wan't to be able to do this is so that the bean can have further injections, based on information which is relevant to the scope but cannot be described in the context file (The session Id, for example)
Is such a mechanism available, if not, is it one that you would consider adding?
If you didn't learn anything today, you weren't paying attention!