mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-07 23:32:42 +01:00
Author:tedf
Date:2011-05-12T01:58:13.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@891 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -24,7 +24,7 @@ The pre-parse processing gives the <code>EIFFEL_PARSER_POOL</code> an agent that
|
||||
|
||||
When an <code>EIFFEL_PARSER</code> finishes with a file, it calls the agent for post-parse processing. In this way, it notifies the instance of <code>DEGREE_5</code> that it is done with that file.
|
||||
|
||||
So, it is here that elements of the observer pattern are shown. In more typical observer pattern examples, there is one observed object an a set of one or more observers. But here, there is one observer, the instance of <code>DEGREE_5</code>, and many observable objects, the parsers. Also, instead of making calls directly to the observer, the observed objects apply the agents that have been provided by the observer.
|
||||
So, it is here that elements of the observer pattern are evident, just in a slightly non-typical way. In more typical observer pattern examples, there is one observed object and a set of one or more observers. But here, there is one observer, the instance of <code>DEGREE_5</code>, and many observable objects, the parsers. Also, instead of making calls directly to the observer, the observed objects apply the agents that have been provided by the observer.
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user