I probably should have been a bit clearer - static injection clearly
works (except when I get it wrong!), but I am curious whether this
approach is still the recommended "best practice" as a way of handling
non-serializable objects.  It does seem to negate some of the
advantages of Guice.


On Aug 24, 6:29 pm, David Sowerby <[email protected]> wrote:
> I have read the post 
> athttp://groups.google.com/group/google-guice/browse_thread/thread/4799...
> but I am still confused by this issue (and it may have changed since
> then, it was 4 years ago)
>
> The problem is the same - serialising session state in a web app which
> has injections of Injector and of Providers - neither of which are
> serializable.
>
> In the previous thread, Bob Lee says this is why he introduced static
> injection - but I must be missing something, as I cannot get it to
> work.  If that is the answer, or for that matter whatever the answer,
> could someone post a simple example?

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to