(According to the msdn webcast courses)
In some cases, the request recipients may be diverse and changing, as shown in:
Request senders need to maintain multiple coupling to process the transmission of request information. There are multiple strong coupling.
Gof: Enables multiple objects to process requests, so as to avoid coupling between request senders and receivers. These objects are connected into a chain and requests are transmitted along the chain, until an object processes it.
The data structure of a one-way linked list is composed of multiple handler subclasses, And the next Pointer Points to its successor element. When handler cannot process the passed request, it will pass the request to the next handler object until the last one. The next attribute is used to maintain the transfer chain.
You can use the next attribute of handler to dynamically modify the transfer order of the chain at runtime:
Handler2.next = handler3;
Handler3.next = handler1;
<End>