Various tiny java samples to demonstrate programming concepts
Go to file
Thibaud c4477aca38 messaging: add a simple message broker
Add a simple message broker which uses the chain of responsibility design pattern for
message handling.

Inspired by this article: http://www.softwarematters.org/message-broker.html#java-implementation

In this design, a message handler can contain a reference to the next
message handler. If the current handler cannot handle the message given
to him by the MessageBroker, he passes this message to the next
MessageHandler.

The chain of responsibility pattern is used in order to decouple the creation of a
concrete message instance from the broker communication logic. This adheres to the Open
Closed Principle, because it is possible to add a new message type without modifying the
message broker.
2019-10-19 17:48:53 +02:00
async Add async samples 2018-10-24 00:18:51 +02:00
gui Add various gui samples 2018-10-24 00:18:20 +02:00
lang Add JsonSerializer example 2019-01-02 19:52:24 +01:00
messaging messaging: add a simple message broker 2019-10-19 17:48:53 +02:00
persistence chrore: update pom.xml 2019-10-19 17:46:36 +02:00
reflection Add some reflection with generics experiments 2018-12-28 19:18:47 +01:00
.gitignore Add dynamic class compilation example 2018-10-23 23:27:08 +02:00
pom.xml messaging: add a simple message broker 2019-10-19 17:48:53 +02:00
README.md Mettre à jour 'README.md' 2018-10-23 21:29:09 +00:00

Java cookbook

A cookbook in the programming context is collection of tiny programs that each demonstrate a particular programming concept.