Stephen Colebourne wrote:
1) Make all decorators implement serializable, but some will fail at runtime
if you decorate a non-serializable instance.

2) Implement serializable subclasses of each decorator, and use the factory
method to create either the serializable or non-serializable subclass as
required.

#1 is easy, #2 will take much longer. Any views? #1 is the default choice.


I like #1 also. It just seems easier.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to