xiaodududu / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

Make objects with bound interceptors serializable #173

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We are using Beehive page flow controllers which are being injected with
services. Since we rely on session replication the page flow controllers
will eventually be serialized. Two problems arise:

1) Since the injected services can not be serializable themselves, they are
marked as transient fields, that naturally tend to be null after
deserialization. How do I re-inject dependencies after deserialization?
(See issue #172 for this issue).

2) Any method interceptors bound to objects being serialized will cause the
serialization to fail with a NotSerializableException:
InterceptorStackCallback. This is the main issue of this ticket.

Original issue reported on code.google.com by phjar...@gmail.com on 20 Dec 2007 at 10:49

GoogleCodeExporter commented 9 years ago
Duplicate of issue 12.

Original comment by limpbizkit on 30 May 2008 at 3:51