File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed
main/java/com/iluwatar/tolerantreader
test/java/com/iluwatar/tolerantreader Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 77 * Tolerant Reader is an integration pattern that helps creating robust communication
88 * systems. The idea is to be as tolerant as possible when reading data from another
99 * service. This way, when the communication schema changes, the readers must not break.
10- *
11- * In this example we use Java serialization to write representations of RainbowFish
12- * objects to file. RainbowFish is the initial version which we can easily read and
13- * write using RainbowFishSerializer methods. RainbowFish then evolves to RainbowFishV2
10+ * <p>
11+ * In this example we use Java serialization to write representations of {@link RainbowFish}
12+ * objects to file. {@link RainbowFish} is the initial version which we can easily read and
13+ * write using {@link RainbowFishSerializer} methods. {@link RainbowFish} then evolves to {@link RainbowFishV2}
1414 * and we again write it to file with a method designed to do just that. However, the reader
1515 * client does not know about the new format and still reads with the method designed for
1616 * V1 schema. Fortunately the reading method has been designed with the Tolerant Reader
17- * pattern and does not break even though RainbowFishV2 has new fields that are serialized.
17+ * pattern and does not break even though {@link RainbowFishV2} has new fields that are serialized.
1818 *
1919 */
2020public class App {
Original file line number Diff line number Diff line change 1010
1111/**
1212 *
13- * RainbowFishSerializer provides methods for reading and writing RainbowFish objects to file.
14- * Tolerant Reader pattern is implemented here by serializing maps instead of RainbowFish objects.
13+ * RainbowFishSerializer provides methods for reading and writing {@link RainbowFish} objects to file.
14+ * Tolerant Reader pattern is implemented here by serializing maps instead of {@link RainbowFish} objects.
1515 * This way the reader does not break even though new properties are added to the schema.
1616 *
1717 */
Original file line number Diff line number Diff line change 99
1010import com .iluwatar .tolerantreader .App ;
1111
12-
12+ /**
13+ *
14+ * Application test
15+ *
16+ */
1317public class AppTest {
1418
1519 @ Test
You can’t perform that action at this time.
0 commit comments