|
Lafros MaCS 1.2r1
|
|
abstract
class
SubjectObserver
extends AnyRefType-safe impl'n of the observer pattern.
This code is derived from an example given in the paper entitled Scalable Component Abstractions by Martin Odersky and Matthias Zenger.
| Type Summary | |
abstract type
|
ObserverType
<: Observer
the actual Observer subclass.
|
abstract type
|
SubjectType
<: Subject
the actual Subject subclass.
|
| Methods inherited from AnyRef | |
| getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
| Methods inherited from Any | |
| ==, !=, isInstanceOf, asInstanceOf |
| Class Summary | |
trait
|
Observer
extends AnyRef
to be extended by observers.
|
trait
|
Subject
extends AnyRef
to be extended by the subject.
|
| Type Details |
abstract
type
SubjectType <: Subject
abstract
type
ObserverType <: Observer
|
Lafros MaCS 1.2r1
|
|