liuxiaoqiang / demo-serialization-proxy-pattern

Demonstrates the Serialization Proxy Pattern

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serialization Proxy Pattern

This project provides the code samples for the CodeFX post about the Serialization Proxy Pattern. It contains the following classes, which all implement the pattern:

  • ComplexNumber: a simple example where the class can keep its fields final due to the pattern.
  • InstanceCache: a slightly more complex example where the class must only serialize the serializable objects it contains in its collection.

As usual, the Demo shows that everything works as intended. It serializes and deserializes instances of the above classes and prints some explanatory messages to System.out.

About

Demonstrates the Serialization Proxy Pattern

License:The Unlicense


Languages

Language:Java 100.0%